File tree Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Original file line number Diff line number Diff line change 2
2
# http://about.travis-ci.org/docs/user/build-configuration/
3
3
# This file can be validated on:
4
4
# 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
5
8
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
12
29
os :
13
30
- linux
14
31
language : cpp
23
40
notifications :
24
41
email :
25
42
43
+ sudo : false
You can’t perform that action at this time.
0 commit comments