-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
89 lines (82 loc) · 2.24 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
82
83
84
85
86
87
88
89
language: cpp
dist: bionic
os: linux
git:
depth: 1
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: ppa:ubuntu-toolchain-r/test
packages:
- g++-9
env:
- CCXX=g++-9
- CCC=gcc-9
- BUILD_TYPE=Debug
- GAL_SAMPLES_ENABLED=off
- BUILD_IK=off
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: ppa:ubuntu-toolchain-r/test
packages:
- g++-9
env:
- CCXX=g++-9
- CCC=gcc-9
- BUILD_TYPE=Release
- GAL_SAMPLES_ENABLED=off
- BUILD_IK=off
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-9
env:
- CCXX=clang++-9
- CCC=clang-9
- BUILD_TYPE=Debug
- GAL_SAMPLES_ENABLED=off
- BUILD_IK=on
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-9
env:
- CCXX=clang++-9
- CCC=clang-9
- BUILD_TYPE=Release
- GAL_SAMPLES_ENABLED=off
- BUILD_IK=on
before_script:
- mkdir $HOME/usr
- export PATH="$HOME/usr/bin:$PATH"
- export CMAKE_INSTALL_SCRIPT=cmake-3.15.4-Linux-x86_64.sh
- wget https://github.com/Kitware/CMake/releases/download/v3.15.4/${CMAKE_INSTALL_SCRIPT}
- chmod +x ${CMAKE_INSTALL_SCRIPT}
- ./${CMAKE_INSTALL_SCRIPT} --prefix=$HOME/usr --exclude-subdir --skip-license
- cd "${TRAVIS_BUILD_DIR}"
- mkdir build
- cd build
- $CCXX --version
- $CCC --version
- cmake --version
- CXX=$CCXX CC=$CCC cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DGAL_TEST_IK_ENABLED=$BUILD_IK -DGAL_SAMPLES_ENABLED=off
script:
- cmake --build . -- -kj2
- ctest --output-on-failure -j2