From 349d2109c97babbcd543fb077035d7ec31528b4e Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Fri, 17 May 2019 22:19:36 -0400 Subject: [PATCH] Fix travis build failing due to azure changes --- .ci/install.sh | 14 ++++++++------ CMakeLists.txt | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.ci/install.sh b/.ci/install.sh index d3e10dd6..c0159dff 100755 --- a/.ci/install.sh +++ b/.ci/install.sh @@ -46,25 +46,27 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then if [ "$UBUNTU_RELEASE" = "trusty" ]; then curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main" + sudo apt-add-repository -y "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main" sudo apt-get update -qq sudo apt-get install -qq -y clang-5.0 sudo add-apt-repository -y ppa:beineri/opt-qt${QT_VERSION}-trusty - # needed for git-lfs, otherwise the follow apt update fails. - sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6B05F25D762E3157 + elif [ "$UBUNTU_RELEASE" = "xenial" ]; then curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" + sudo apt-add-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" sudo apt-get update -qq sudo apt-get install -qq -y clang-6.0 - sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial + sudo add-apt-repository -y ppa:beineri/opt-qt-5.11.1-xenial fi + + # needed for git-lfs, otherwise the follow apt update fails. + sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6B05F25D762E3157 # needed for mongodb repository: https://github.com/travis-ci/travis-ci/issues/9037 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 - sudo add-apt-repository ppa:ubuntu-toolchain-r/test + sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test sudo apt update -qq sudo apt install -qq -y \ diff --git a/CMakeLists.txt b/CMakeLists.txt index e1f2a7c5..3e24f427 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,7 +105,7 @@ if(NOT MSVC) -fsized-deallocation \ -fdiagnostics-color=always \ -Wunreachable-code \ - -std=c++14" + -std=c++14" ) if (NOT CMAKE_COMPILER_IS_GNUCXX) # -Wshadow is buggy and broken in GCC, so do not enable it.