-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
70 lines (58 loc) · 1.38 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
sudo: false
language:
- cpp
matrix:
include:
- os: linux
dist: focal
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
- libgtest-dev
- googletest
- cmake
compiler: gcc-9
env:
- C_COMPILER=gcc-9
- CXX_COMPILER=g++-9
- CXX_FLAGS=-Werror=sign-compare
install:
- mkdir /tmp/build-gtest && cd /tmp/build-gtest
- cmake /usr/src/googletest
- sudo cmake --build . --target install
- cd -
- os: linux
dist: focal
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-10
- libgtest-dev
- googletest
- cmake
compiler: gcc-10
env:
- C_COMPILER=gcc-10
- CXX_COMPILER=g++-10
- CXX_FLAGS=-Werror=sign-compare
install:
- mkdir /tmp/build-gtest && cd /tmp/build-gtest
- cmake /usr/src/googletest
- sudo cmake --build . --target install
- cd -
script:
- >-
cmake -H. -Bbuild
-DCMAKE_C_COMPILER=$C_COMPILER -DCMAKE_CXX_COMPILER=$CXX_COMPILER
-DCMAKE_CXX_FLAGS="$CXX_FLAGS"
-DARGUMENTUM_BUILD_EXAMPLES=ON -DARGUMENTUM_BUILD_TESTS=ON
- cd build
- cmake --build .
- ctest
notifications:
email: false