Commit 7403a237 authored by Stefan Behnel's avatar Stefan Behnel

Simplify travis build script.

parent 46132491
......@@ -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
- |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment