Skip to content

Commit 170da2e

Browse files
committed
.travis.yml: attempt to support multiple GCC versions
1 parent f37ebc3 commit 170da2e

File tree

1 file changed

+60
-1
lines changed

1 file changed

+60
-1
lines changed

.travis.yml

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,66 @@
1+
matrix:
2+
include:
3+
- os: linux
4+
addons:
5+
apt:
6+
sources:
7+
- ubuntu-toolchain-r-test
8+
packages:
9+
- g++-4.8 gcc-4.8-plugin-dev
10+
env:
11+
- MATRIX_EVAL="CC=gcc-4.8 && CXX=g++-4.8"
12+
13+
# works on Precise and Trusty
14+
- os: linux
15+
addons:
16+
apt:
17+
sources:
18+
- ubuntu-toolchain-r-test
19+
packages:
20+
- g++-4.9 gcc-4.9-plugin-dev
21+
env:
22+
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
23+
24+
# works on Precise and Trusty
25+
- os: linux
26+
addons:
27+
apt:
28+
sources:
29+
- ubuntu-toolchain-r-test
30+
packages:
31+
- g++-5 gcc-5-plugin-dev
32+
env:
33+
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
34+
35+
# works on Precise and Trusty
36+
- os: linux
37+
addons:
38+
apt:
39+
sources:
40+
- ubuntu-toolchain-r-test
41+
packages:
42+
- g++-6 gcc-6-plugin-dev
43+
env:
44+
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
45+
46+
# works on Precise and Trusty
47+
- os: linux
48+
addons:
49+
apt:
50+
sources:
51+
- ubuntu-toolchain-r-test
52+
packages:
53+
- g++-7 gcc-7-plugin-dev
54+
env:
55+
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
56+
57+
before_install:
58+
- eval "${MATRIX_EVAL}"
59+
160
language: c
261
compiler:
362
- gcc
463
script: make
564
before_install:
665
- sudo apt-get update -qq
7-
- sudo apt-get install -qq gcc-4.8-plugin-dev python-six python-pygments graphviz python-lxml
66+
- sudo apt-get install -qq python-six python-pygments graphviz python-lxml

0 commit comments

Comments
 (0)