Skip to content

Commit 61b0f63

Browse files
Upgrade GCC to gcc-7 for host builds
1 parent 8d2360e commit 61b0f63

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.travis.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,56 @@ git:
66
depth: 1
77
submodules: false
88

9+
# From https://docs.travis-ci.com/user/languages/cpp/ - to get less ancient GCC/G++
10+
matrix:
11+
include:
12+
# works on Precise and Trusty
13+
- os: linux
14+
addons:
15+
apt:
16+
sources:
17+
- ubuntu-toolchain-r-test
18+
packages:
19+
- g++-4.9
20+
env:
21+
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
22+
23+
# works on Precise and Trusty
24+
- os: linux
25+
addons:
26+
apt:
27+
sources:
28+
- ubuntu-toolchain-r-test
29+
packages:
30+
- g++-5
31+
env:
32+
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
33+
34+
# works on Precise and Trusty
35+
- os: linux
36+
addons:
37+
apt:
38+
sources:
39+
- ubuntu-toolchain-r-test
40+
packages:
41+
- g++-6
42+
env:
43+
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
44+
45+
# works on Precise and Trusty
46+
- os: linux
47+
addons:
48+
apt:
49+
sources:
50+
- ubuntu-toolchain-r-test
51+
packages:
52+
- g++-7
53+
env:
54+
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
55+
956
before_install:
1057
- git submodule update --init # no recursive update
58+
- eval "${MATRIX_EVAL}"
1159

1260
cache:
1361
directories:

0 commit comments

Comments
 (0)