@@ -11,20 +11,27 @@ matrix:
11
11
- os : osx
12
12
sudo : false
13
13
compiler : gcc
14
- before_install : brew install jq
15
- env : COMPILER=g++
14
+ cache : ccache
15
+ before_install :
16
+ - brew install jq ccache
17
+ - export PATH=/usr/local/opt/ccache/libexec:$PATH
18
+ env : COMPILER="ccache g++"
16
19
17
20
# OS X using clang++
18
21
- os : osx
19
22
sudo : false
20
23
compiler : clang
21
- before_install : brew install jq
22
- env : COMPILER=clang++
24
+ cache : ccache
25
+ before_install :
26
+ - brew install jq ccache
27
+ - export PATH=/usr/local/opt/ccache/libexec:$PATH
28
+ env : COMPILER="ccache clang++ -Qunused-arguments -fcolor-diagnostics"
23
29
24
30
# Ubuntu Linux with glibc using g++-5
25
31
- os : linux
26
32
sudo : false
27
33
compiler : gcc
34
+ cache : ccache
28
35
addons :
29
36
apt :
30
37
sources :
@@ -35,12 +42,13 @@ matrix:
35
42
- libubsan0
36
43
before_install :
37
44
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
38
- env : COMPILER=g++-5
45
+ env : COMPILER="ccache g++-5"
39
46
40
47
# Ubuntu Linux with glibc using clang++-3.7
41
48
- os : linux
42
49
sudo : false
43
50
compiler : clang
51
+ cache : ccache
44
52
addons :
45
53
apt :
46
54
sources :
@@ -53,7 +61,9 @@ matrix:
53
61
- libubsan0
54
62
before_install :
55
63
- mkdir bin ; ln -s /usr/bin/clang-3.7 bin/gcc
56
- env : COMPILER=clang++-3.7
64
+ env :
65
+ - COMPILER="ccache clang++-3.7 -Qunused-arguments -fcolor-diagnostics"
66
+ - CCACHE_CPP2=yes
57
67
58
68
- env : NAME="CPP-LINT"
59
69
addons :
@@ -71,6 +81,7 @@ matrix:
71
81
- libwww-perl
72
82
script :
73
83
- git fetch origin $TRAVIS_BRANCH && git branch $TRAVIS_BRANCH FETCH_HEAD && cbmc/scripts/travis_lint.sh
84
+ before_cache :
74
85
75
86
install :
76
87
- if [ -L bin/gcc ] ; then export PATH=$PWD/bin:$PATH ; fi ;
@@ -90,11 +101,13 @@ install:
90
101
# Run within host machine to setup CBMC remotes
91
102
- make setup-cbmc
92
103
104
+ before_cache : ccache -s
105
+
93
106
script :
94
107
- |
95
108
# Compile in host machine/container & run tests in host machine/container
96
109
if [ -L bin/gcc ] ; then export PATH=$PWD/bin:$PATH ; fi ;
97
- COMMAND="make -C src CXX=$COMPILER CXXFLAGS=\"-Wall -O2 -g -Werror -Wno-deprecated-register -pedantic -Wno-sign-compare -DUSE_BOOST\"" &&
110
+ COMMAND="make -C src CXX=\" $COMPILER\" CXXFLAGS=\"-Wall -O2 -g -Werror -Wno-deprecated-register -pedantic -Wno-sign-compare -DUSE_BOOST\"" &&
98
111
eval ${PRE_COMMAND} ${COMMAND}
99
112
100
113
notifications :
0 commit comments