travis: replace clang 8 with clang 10
MODIFY
.travis.yml
.travis.yml
@@ -74,36 +74,39 @@ matrix:
dist: bionic
addons: *gcc9
- - env: CMAKE_CXX_COMPILER=clang++-8 CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
+ - env: CMAKE_CXX_COMPILER=clang++-9 CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
os: linux
dist: bionic
- addons: &clang8
+ addons: &clang9
apt:
+ sources:
+ - sourceline: "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
+ key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
packages:
- *default_packages
- - clang-8
+ - clang-9
- - env: CMAKE_CXX_COMPILER=clang++-8 CMAKE_BUILD_TYPE=Release
+ - env: CMAKE_CXX_COMPILER=clang++-9 CMAKE_BUILD_TYPE=Release
os: linux
dist: bionic
- addons: *clang8
+ addons: *clang9
- - env: CMAKE_CXX_COMPILER=clang++-9 CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
+ - env: CMAKE_CXX_COMPILER=clang++-10 CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
os: linux
dist: bionic
- addons: &clang9
+ addons: &clang10
apt:
sources:
- - sourceline: "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
+ - sourceline: "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
packages:
- *default_packages
- - clang-9
+ - clang-10
- - env: CMAKE_CXX_COMPILER=clang++-9 CMAKE_BUILD_TYPE=Release
+ - env: CMAKE_CXX_COMPILER=clang++-10 CMAKE_BUILD_TYPE=Release
os: linux
dist: bionic
- addons: *clang9
+ addons: *clang10
- env: CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
os: osx

travis: replace clang 8 with clang 10