-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
47 lines (37 loc) · 827 Bytes
/
.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
dist: bionic
language: cpp
os :
- linux
- osx
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-9
- g++-9
- cmake
env:
- TARGET_CPU=amd64 BUILD_CONFIGURATION=Debug
- TARGET_CPU=amd64 BUILD_CONFIGURATION=Release
- TARGET_CPU=x86 BUILD_CONFIGURATION=Debug
- TARGET_CPU=x86 BUILD_CONFIGURATION=Release
matrix:
exclude:
- os: osx
compiler: gcc
- os: osx
env: TARGET_CPU=x86 BUILD_CONFIGURATION=Debug
- os: osx
env: TARGET_CPU=x86 BUILD_CONFIGURATION=Release
script:
- export CC=gcc-9
- export CXX=g++-9
- gcc -v && g++ -v && cmake --version
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DTARGET_CPU=$TARGET_CPU
- cmake --build .
- ctest --output-on-failure