Skip to content

Commit 02839ef

Browse files
committed
Merge pull request #310 from cdunn2001/0.y.z
gcc-4.6, clang-3.3
2 parents fb13012 + 138c48b commit 02839ef

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.travis.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,30 @@
22
# http://about.travis-ci.org/docs/user/build-configuration/
33
# This file can be validated on:
44
# http://lint.travis-ci.org/
5+
# See also
6+
# http://stackoverflow.com/questions/22111549/travis-ci-with-clang-3-4-and-c11/30925448#30925448
7+
# to allow C++11, though we are not yet building with -std=c++11
58

6-
#before_install: sudo apt-get install -y cmake
7-
# cmake is pre-installed in Travis for both linux and osx
8-
9-
before_install:
10-
- sudo apt-get update -qq
11-
- sudo apt-get install -qq valgrind
9+
install:
10+
# /usr/bin/gcc is 4.6 always, but gcc-X.Y is available.
11+
#- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
12+
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.6" CC="gcc-4.6"; fi
13+
# /usr/bin/clang is our version already, and clang-X.Y does not exist.
14+
#- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.3" CC="clang-3.3"; fi
15+
- echo ${PATH}
16+
- ls /usr/local
17+
- export PATH=/usr/bin:${PATH}
18+
- echo ${CXX}
19+
- ${CXX} --version
20+
addons:
21+
apt:
22+
sources:
23+
- ubuntu-toolchain-r-test
24+
packages:
25+
- gcc-4.6
26+
- g++-4.6
27+
- clang-3.3
28+
- valgrind
1229
os:
1330
- linux
1431
language: cpp
@@ -23,3 +40,4 @@ env:
2340
notifications:
2441
email:
2542
43+
sudo: false

0 commit comments

Comments
 (0)