travis: update compilers: gcc 10, clang 11, xcode 12
MODIFY
.travis.yml
.travis.yml
@@ -45,23 +45,9 @@ script:
matrix:
include:
- - env: CMAKE_CXX_COMPILER=g++-8 CMAKE_BUILD_TYPE=Debug
- os: linux
- dist: bionic
- addons: &gcc8
- apt:
- packages:
- - *default_packages
- - g++-8
-
- - env: CMAKE_CXX_COMPILER=g++-8 CMAKE_BUILD_TYPE=Release
- os: linux
- dist: bionic
- addons: *gcc8
-
- env: CMAKE_CXX_COMPILER=g++-9 CMAKE_BUILD_TYPE=Debug
os: linux
- dist: bionic
+ dist: focal
addons: &gcc9
apt:
sources: *default_sources
@@ -71,33 +57,30 @@ matrix:
- env: CMAKE_CXX_COMPILER=g++-9 CMAKE_BUILD_TYPE=Release
os: linux
- dist: bionic
+ dist: focal
addons: *gcc9
- - env: CMAKE_CXX_COMPILER=clang++-9 CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
+ - env: CMAKE_CXX_COMPILER=g++-10 CMAKE_BUILD_TYPE=Debug
os: linux
- dist: bionic
- addons: &clang9
+ dist: focal
+ addons: &gcc10
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-9
+ - g++-10
- - env: CMAKE_CXX_COMPILER=clang++-9 CMAKE_BUILD_TYPE=Release
+ - env: CMAKE_CXX_COMPILER=g++-10 CMAKE_BUILD_TYPE=Release
os: linux
- dist: bionic
- addons: *clang9
+ dist: focal
+ addons: *gcc10
- env: CMAKE_CXX_COMPILER=clang++-10 CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
os: linux
- dist: bionic
+ dist: focal
addons: &clang10
apt:
sources:
- - sourceline: "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
+ - sourceline: "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main"
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
packages:
- *default_packages
@@ -105,12 +88,29 @@ matrix:
- env: CMAKE_CXX_COMPILER=clang++-10 CMAKE_BUILD_TYPE=Release
os: linux
- dist: bionic
+ dist: focal
addons: *clang10
+ - env: CMAKE_CXX_COMPILER=clang++-11 CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
+ os: linux
+ dist: focal
+ addons: &clang11
+ apt:
+ sources:
+ - sourceline: "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main"
+ key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
+ packages:
+ - *default_packages
+ - clang-11
+
+ - env: CMAKE_CXX_COMPILER=clang++-11 CMAKE_BUILD_TYPE=Release
+ os: linux
+ dist: focal
+ addons: *clang11
+
- env: CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
os: osx
- osx_image: xcode11.4
+ osx_image: xcode12
addons: &mac
homebrew:
packages:
@@ -121,5 +121,5 @@ matrix:
- env: CMAKE_BUILD_TYPE=Release
os: osx
- osx_image: xcode11.4
+ osx_image: xcode12
addons: *mac

travis: update compilers: gcc 10, clang 11, xcode 12