-
-
Notifications
You must be signed in to change notification settings - Fork 93
/
.travis.yml
81 lines (66 loc) · 1.78 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
sudo: required
language: cpp
env:
global:
- OMP_NUM_THREADS=2
- APPROXMVBB_CACHE_DIR="$HOME/ApproxMVBBCache"
cache:
directories:
- $APPROXMVBB_CACHE_DIR
matrix:
include:
- env: USE_GCC="YES" GCC_VERSION="5"
os: linux
dist: xenial
addons: &gcc5
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5']
- env: USE_GCC="YES" GCC_VERSION="6"
os: linux
dist: xenial
addons: &gcc6
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-6']
- env: USE_CLANG="YES" CLANG_VERSION=""
os: linux
dist: xenial
addons: &clang7
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-6']
- env: USE_CLANG="YES" CLANG_VERSION=""
os: linux
dist: focal
- env: USE_GCC="YES" GCC_VERSION=""
os: linux
dist: focal
- env: APPLE_CLANG="YES" MANUAL_EIGEN="OFF"
os: osx
osx_image: xcode11.2
compiler: clang
- env: APPLE_CLANG="NO" MANUAL_EIGEN="OFF"
os: osx
osx_image: xcode11.2
compiler: clang
# Install dependencies
install:
- export ROOT_PATH=`pwd`/../;
- export CHECKOUT_PATH=`pwd`;
- export BRANCH_NAME=$TRAVIS_BRANCH
- mkdir -p $APPROXMVBB_CACHE_DIR/{bin,include,lib,share}
- export INSTALL_PREFIX="$APPROXMVBB_CACHE_DIR"
- export PATH="$INSTALL_PREFIX/bin:/usr/local/bin:$PATH"
- export CMAKE_PREFIX_PATH="$APPROXMVBB_CACHE_DIR;/usr/local"
- chmod +x $CHECKOUT_PATH/travis/install_${TRAVIS_OS_NAME}.sh
- $CHECKOUT_PATH/travis/install_${TRAVIS_OS_NAME}.sh
script:
- chmod +x $CHECKOUT_PATH/travis/build.sh
- $CHECKOUT_PATH/travis/build.sh
after_success:
- cd $CHECKOUT_PATH
- git reset --hard HEAD # Discard build artifacts
- git clean -df # Discard build artifacts
notifications:
email: false