1
1
language : cpp
2
2
3
- matrix :
3
+ jobs :
4
4
include :
5
5
6
+ - &linter-stage
7
+ stage : Linter + Doxygen + non-debug Ubuntu/gcc-5 test
8
+ env : NAME="CPP-LINT"
9
+ install :
10
+ script : scripts/travis_lint.sh
11
+ before_cache :
12
+
13
+ - stage : Linter + Doxygen + non-debug Ubuntu/gcc-5 test
14
+ env : NAME="DOXYGEN-CHECK"
15
+ addons :
16
+ apt :
17
+ packages :
18
+ - doxygen
19
+ install :
20
+ script : scripts/travis_doxygen.sh
21
+ before_cache :
22
+
23
+ # Ubuntu Linux with glibc using g++-5
24
+ - stage : Linter + Doxygen + non-debug Ubuntu/gcc-5 test
25
+ os : linux
26
+ sudo : false
27
+ compiler : gcc
28
+ cache : ccache
29
+ addons :
30
+ apt :
31
+ sources :
32
+ - ubuntu-toolchain-r-test
33
+ packages :
34
+ - libwww-perl
35
+ - g++-5
36
+ - libubsan0
37
+ before_install :
38
+ - mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
39
+ # env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
40
+ env : COMPILER="ccache g++-5"
41
+
6
42
# Alpine Linux with musl-libc using g++
7
- - os : linux
43
+ - stage : Test different OS/CXX/Flags
44
+ os : linux
8
45
sudo : required
9
46
compiler : gcc
10
47
cache : ccache
11
48
services :
12
49
- docker
13
50
before_install :
14
- - docker pull diffblue/cbmc-builder:alpine-0.0.1
51
+ - docker pull diffblue/cbmc-builder:alpine-0.0.3
15
52
env :
16
- - PRE_COMMAND="docker run -v ${TRAVIS_BUILD_DIR}:/cbmc -v ${HOME}/.ccache:/root/.ccache diffblue/cbmc-builder:alpine-0.0.1 "
53
+ - PRE_COMMAND="docker run -v ${TRAVIS_BUILD_DIR}:/cbmc -v ${HOME}/.ccache:/root/.ccache diffblue/cbmc-builder:alpine-0.0.3 "
17
54
- COMPILER="ccache g++"
18
55
19
56
# OS X using g++
20
- - os : osx
57
+ - stage : Test different OS/CXX/Flags
58
+ os : osx
21
59
sudo : false
22
60
compiler : gcc
23
61
cache : ccache
@@ -26,42 +64,24 @@ matrix:
26
64
- mkdir bin ; ln -s /usr/bin/gcc bin/gcc
27
65
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
28
66
- export PATH=/usr/local/opt/ccache/libexec:$PATH
29
- - ccache -M 1G
30
- env : COMPILER=g++
67
+ env : COMPILER="ccache g++"
31
68
32
69
# OS X using clang++
33
- - os : osx
70
+ - stage : Test different OS/CXX/Flags
71
+ os : osx
34
72
sudo : false
35
73
compiler : clang
36
74
cache : ccache
37
75
before_install :
38
76
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
39
77
- export PATH=/usr/local/opt/ccache/libexec:$PATH
40
- - ccache -M 1G
41
78
env :
42
79
- COMPILER="ccache clang++ -Qunused-arguments -fcolor-diagnostics"
43
80
- CCACHE_CPP2=yes
44
81
45
- # Ubuntu Linux with glibc using g++-5
46
- - os : linux
47
- sudo : false
48
- compiler : gcc
49
- cache : ccache
50
- addons :
51
- apt :
52
- sources :
53
- - ubuntu-toolchain-r-test
54
- packages :
55
- - libwww-perl
56
- - g++-5
57
- - libubsan0
58
- before_install :
59
- - mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
60
- # env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
61
- env : COMPILER="g++-5"
62
-
63
82
# Ubuntu Linux with glibc using g++-5, debug mode
64
- - os : linux
83
+ - stage : Test different OS/CXX/Flags
84
+ os : linux
65
85
sudo : false
66
86
compiler : gcc
67
87
cache : ccache
@@ -77,12 +97,13 @@ matrix:
77
97
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
78
98
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
79
99
env :
80
- - COMPILER="g++-5"
100
+ - COMPILER="ccache g++-5"
81
101
- EXTRA_CXXFLAGS="-DDEBUG"
82
102
script : echo "Not running any tests for a debug build."
83
103
84
104
# Ubuntu Linux with glibc using clang++-3.7
85
- - os : linux
105
+ - stage : Test different OS/CXX/Flags
106
+ os : linux
86
107
sudo : false
87
108
compiler : clang
88
109
cache : ccache
@@ -105,7 +126,8 @@ matrix:
105
126
- CCACHE_CPP2=yes
106
127
107
128
# Ubuntu Linux with glibc using clang++-3.7, debug mode
108
- - os : linux
129
+ - stage : Test different OS/CXX/Flags
130
+ os : linux
109
131
sudo : false
110
132
compiler : clang
111
133
cache : ccache
@@ -129,27 +151,11 @@ matrix:
129
151
- EXTRA_CXXFLAGS="-DDEBUG"
130
152
script : echo "Not running any tests for a debug build."
131
153
132
- - env : NAME="CPP-LINT"
133
- install :
134
- script : scripts/travis_lint.sh
135
- before_cache :
136
-
137
- - env : NAME="DOXYGEN-CHECK"
138
- addons :
139
- apt :
140
- packages :
141
- - doxygen
142
- install :
143
- script : scripts/travis_doxygen.sh
144
- before_cache :
145
-
146
154
allow_failures :
147
- - env : NAME="CPP-LINT"
148
- install :
149
- script : scripts/travis_lint.sh
150
- before_cache :
155
+ - << : *linter-stage
151
156
152
157
install :
158
+ - ccache --max-size=1G
153
159
- COMMAND="make -C src minisat2-download" &&
154
160
eval ${PRE_COMMAND} ${COMMAND}
155
161
- COMMAND="make -C src CXX=\"$COMPILER\" CXXFLAGS=\"-Wall -Werror -pedantic -O2 -g $EXTRA_CXXFLAGS\" -j2" &&
0 commit comments