Update travis config to use updated versions of OS and compilers.

This fixes the linux/gcc error building Google Test with gcc 4.7:

https://travis-ci.org/github/jbeder/yaml-cpp/jobs/668233706
This commit is contained in:
Jesse Beder
2020-04-07 22:27:32 -05:00
parent 6f7ead5171
commit b43575f89c

View File

@@ -1,21 +1,16 @@
language: c++ language: c++
os:
- linux matrix:
- osx include:
compiler: - os: linux
- clang compiler: gcc
- gcc - os: osx
before_install: compiler: clang
- | - os: osx
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then compiler: gcc
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y \
&& sudo apt-get update -qq \
&& if [ "$CXX" == "g++" ]; then
sudo apt-get install -qq g++-4.7 && export CXX="g++-4.7" CC="gcc-4.7"
fi
fi
env: env:
- CTEST_OUTPUT_ON_FAILURE=1 - CTEST_OUTPUT_ON_FAILURE=1
before_script: before_script:
- mkdir build - mkdir build
- cd build - cd build
@@ -24,7 +19,19 @@ before_script:
script: script:
- cmake --build build - cmake --build build
- cmake --build build --target test - cmake --build build --target test
matrix:
exclude: addons:
- os: linux apt:
compiler: clang sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.9
packages:
- g++-4.9
- clang-3.9
update: true
homebrew:
packages:
- ccache
- gcc@4.9
- llvm@4
update: true