Skip to content

Commit ffcded2

Browse files
committed
Adding gcc 5 and 6 on Travis CI
1 parent 31819e3 commit ffcded2

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.travis.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
language: cpp
32

43
env:
@@ -18,6 +17,28 @@ matrix:
1817
- os: linux
1918
dist: trusty
2019
sudo: required
20+
- os: linux
21+
env: CI_CXX=g++-6 CI_CCC=gcc-6
22+
sudo: required
23+
dist: trusty
24+
addons:
25+
apt:
26+
sources:
27+
# add PPAs with more up-to-date toolchains
28+
- ubuntu-toolchain-r-test
29+
packages:
30+
- g++-6
31+
- os: linux
32+
env: CI_CXX=g++-5 CI_CCC=gcc-5
33+
sudo: required
34+
dist: trusty
35+
addons:
36+
sources:
37+
# add PPAs with more up-to-date toolchains
38+
- ubuntu-toolchain-r-test
39+
apt:
40+
packages:
41+
- g++-5
2142
- os: osx
2243
osx_image: xcode7.3
2344

@@ -28,6 +49,10 @@ before_install:
2849

2950
before_script:
3051
- cmake --version
52+
- if [[ -n "$CI_CC" ]]; then export CC="$CI_CC"; fi
53+
- if [[ -n "$CI_CXX" ]]; then export CXX="$CI_CXX"; fi
54+
- ls -la $(which $CXX)
55+
- $CXX --version
3156
- env
3257
- bash -x ${PROJ_SRC}/test/ci/CacheAndUpdateITK.sh
3358

0 commit comments

Comments
 (0)