Skip to content

Commit c5383b6

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

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.travis.yml

Lines changed: 20 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,22 @@ 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+
packages:
27+
- g++-6
28+
- os: linux
29+
env: CI_CXX=g++-5 CI_CCC=gcc-5
30+
sudo: required
31+
dist: trusty
32+
addons:
33+
apt:
34+
packages:
35+
- g++-5
2136
- os: osx
2237
osx_image: xcode7.3
2338

@@ -28,6 +43,10 @@ before_install:
2843

2944
before_script:
3045
- cmake --version
46+
- if [[ -n "$CI_CC" ]]; then export CC="$CI_CC"; fi
47+
- if [[ -n "$CI_CXX" ]]; then export CXX="$CI_CXX"; fi
48+
- ls -la $(which $CXX)
49+
- $CXX --version
3150
- env
3251
- bash -x ${PROJ_SRC}/test/ci/CacheAndUpdateITK.sh
3352

0 commit comments

Comments
 (0)