diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2018-08-10 14:12:03 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2018-08-10 14:12:03 +0200 |
commit | 7403a237ec208e15738cfeb07dc07504e1acf96c (patch) | |
tree | 587c6f508c9e026c37498b905b88938075fb044f | |
parent | 46132491bfadd3c64a5c9092204887ccd254b8ee (diff) | |
download | cython-7403a237ec208e15738cfeb07dc07504e1acf96c.tar.gz |
Simplify travis build script.
-rw-r--r-- | .travis.yml | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index 9b5eb2eb3..543eed523 100644 --- a/.travis.yml +++ b/.travis.yml @@ -112,16 +112,12 @@ branches: before_install: - | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8 sudo update-alternatives --set gcc /usr/bin/gcc-8 - export CC=gcc-8 - if [ "$BACKEND" = cpp ]; then - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 60 - sudo update-alternatives --set g++ /usr/bin/g++-8 - export CXX=g++-8 - fi - if [ -n "$CC" ]; then $CC --version; else gcc --version; fi - if [ -n "$CXX" ]; then $CXX --version; else g++ --version; fi + sudo update-alternatives --set g++ /usr/bin/g++-8 + export CC=gcc-8 CXX=g++-8 + $CC --version + $CXX --version fi - | |