Skip to content

Commit e6c8160

Browse files
committed
Travis config for GCC 5 and Clang 3.7
The build matrix is constructed from os and compiler. OSX and Linux are picked as operating systems for compilation, and linting is run as a parallel task. Linux uses GCC/g++ 5 and Clang 3.7.
1 parent 2489514 commit e6c8160

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

.travis.yml

+17-22
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,39 @@ sudo: required
55
matrix:
66
include:
77
- os: linux
8-
dist: trusty
9-
compiler: clang
8+
compiler: gcc
109
addons:
1110
apt:
1211
sources:
1312
- ubuntu-toolchain-r-test
1413
packages:
15-
# newer g++ version (also pulls libstdc++)
16-
- g++-4.9
1714
- libwww-perl
15+
- g++-5
16+
before_install:
17+
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 90
18+
env: COMPILER=g++-5
1819
- os: linux
19-
dist: trusty
20-
compiler: gcc
20+
compiler: clang
2121
addons:
2222
apt:
2323
sources:
2424
- ubuntu-toolchain-r-test
25+
- llvm-toolchain-precise-3.7
2526
packages:
26-
# newer g++ version (also pulls libstdc++)
27-
- g++-4.9
2827
- libwww-perl
28+
- clang-3.7
2929
before_install:
30-
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90
31-
- os: osx
32-
compiler: clang
30+
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/clang-3.7 90
31+
env: COMPILER=clang++-3.7
3332
- os: osx
3433
compiler: gcc
35-
36-
addons:
37-
apt:
38-
packages:
39-
- libwww-perl
34+
env: COMPILER=g++
35+
- os: osx
36+
compiler: clang
37+
env: COMPILER=clang++
38+
- env: NAME="CPP-LINT"
39+
script: DIFF=`git diff --name-only master HEAD` && if [ "$DIFF" != "" ]; then python scripts/cpplint.py $DIFF; fi
4040

4141
script:
4242
- make -C src minisat2-download
43-
- make -C src CXXFLAGS="-Wall -O2 -g -Werror -Wno-deprecated-register -pedantic -Wno-sign-compare" -j2 && make -C regression test
44-
45-
matrix:
46-
include:
47-
- env: NAME="CPP-LINT"
48-
script: DIFF=`git diff --name-only master HEAD` && if [ "$DIFF" != "" ]; then python scripts/cpplint.py $DIFF; fi
43+
- make -C src CXX=$COMPILER CXXFLAGS="-Wall -O2 -g -Werror -Wno-deprecated-register -pedantic -Wno-sign-compare" -j2 && make -C regression test

0 commit comments

Comments
 (0)