From ceb23bef6e63766d9fc2e2cc5e44d5f0c6fbac94 Mon Sep 17 00:00:00 2001 From: terik23 Date: Sat, 25 May 2019 21:16:33 +0500 Subject: [PATCH] update ci --- .travis.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0ba38a9..111462b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,12 @@ matrix: - os: linux compiler: g++ + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-9 env: - CXX_COMPILER=g++-9 CC_COMPILER=gcc-9 @@ -96,12 +102,6 @@ matrix: env: - CXX_COMPILER=clang++ CC_COMPILER=clang - allow_failures: # gcc-9 yeat unstable. - - os: linux - compiler: g++ - env: - - CXX_COMPILER=g++-9 CC_COMPILER=gcc-9 - install: - export CC=${CC_COMPILER} - export CXX=${CXX_COMPILER} @@ -136,15 +136,6 @@ install: export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${LLVM_INSTALL}/lib" fi - | - # If linux and gcc-9 install gcc-9. - if [[ "${CXX}" == "g++-9" ]]; then - wget http://kayari.org/gcc-latest/gcc-latest.deb - sudo dpkg -i gcc-latest.deb - sudo ln -s /opt/gcc-latest/bin/gcc /usr/bin/gcc-9 - sudo ln -s /opt/gcc-latest/bin/g++ /usr/bin/g++-9 - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 - sudo ldconfig /opt/gcc-latest/lib64 - fi before_script: - rm -rf build