.travis.yml: choose compiler with environment variables
.. and not update-alternatives, which requires "sudo".
This commit is contained in:
parent
40e2a703d0
commit
78faee8c7c
|
@ -25,10 +25,9 @@ before_install:
|
||||||
install:
|
install:
|
||||||
# C++14
|
# C++14
|
||||||
- sudo apt-get install -qq g++-5
|
- sudo apt-get install -qq g++-5
|
||||||
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
|
|
||||||
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 90
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- export CC=gcc-5 CXX=g++-5
|
||||||
- ./autogen.sh
|
- ./autogen.sh
|
||||||
- ./configure --enable-test
|
- ./configure --enable-test
|
||||||
- make
|
- make
|
||||||
|
|
Loading…
Reference in New Issue