From 26432febc75b05a18310ab2150838fba8a7af3e3 Mon Sep 17 00:00:00 2001 From: terik23 Date: Tue, 21 May 2019 21:17:28 +0500 Subject: [PATCH] update ci --- .travis.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0572c5e..eaf1909 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,12 @@ matrix: include: - os: linux compiler: g++ + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-9 env: - CXX_COMPILER=g++-9 CC_COMPILER=gcc-9 @@ -68,12 +74,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} @@ -108,15 +108,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