forked from cxzheng/ModalSound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (60 loc) · 2.23 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: cpp
sudo: required
matrix:
include:
# Linux and GCC
- os: linux
dist: xenial
env:
- CC_COMPILER=gcc-6
- CXX_COMPILER=g++-6
script:
- git submodule init
- git submodule update
- export PATH=/usr/bin/:$PATH
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update
- wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
- sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
- sudo sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list'
- sudo apt-get update
- cd ModalSound
- chmod 755 get_eigen.sh
- ./get_eigen.sh
- sudo rm /var/lib/apt/lists/lock
- sudo rm /var/cache/apt/archives/lock
- sudo rm /var/lib/dpkg/lock
- sudo apt-get install -y gcc-6 g++-6
- sudo apt-get install -y git libboost-all-dev xorg-dev libglu1-mesa-dev libgoogle-glog-dev freeglut3-dev qtmultimedia5-dev qt5-default mesa-utils libqglviewer-dev libxmu-dev libxi-dev libconfig++-dev libprotobuf-dev libgsl-dev protobuf-compiler
- sudo apt-get install -y intel-mkl-64bit-2017.4-061
- version=3.9.6
- wget https://cmake.org/files/v3.9/cmake-$version.tar.gz
- tar -xzvf cmake-$version.tar.gz 1> /dev/null
- cd cmake-$version/
- ./bootstrap 1> /dev/null
- make -j4 1>/dev/null
- sudo make install
- cd ..
- cmake --version
- source /opt/intel/mkl/bin/mklvars.sh intel64
- source /opt/intel/bin/compilervars.sh intel64
- mkdir build
- cd build
- CC=$CC_COMPILER CXX=$CXX_COMPILER cmake ..
- make
- cd ../../IsoStuffer
- mkdir build
- cd build
- CC=$CC_COMPILER CXX=$CXX_COMPILER cmake ..
- make -j 2
# - $CTEST_EXEC -j 2 --output-on-failure
# - os: osx
# compiler: clang
# script:
# - cmake --version
# - git submodule init
# - git submodule update
# - mkdir build
# - cd build
# - cmake ..
# - make -j 2