Update CI configurations.
Bump GCC and Clang on Travis and remove Visual Studio 2015 from AppVeyor.
This commit is contained in:
@@ -11,9 +11,6 @@ environment:
|
|||||||
- JOB: Visual Studio 2017
|
- JOB: Visual Studio 2017
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
CMAKE_GENERATOR: Visual Studio 15 2017
|
CMAKE_GENERATOR: Visual Studio 15 2017
|
||||||
- JOB: Visual Studio 2015
|
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
||||||
CMAKE_GENERATOR: Visual Studio 14 2015
|
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
- x86
|
- x86
|
||||||
@@ -38,4 +35,4 @@ build_script:
|
|||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- out\%CONFIGURATION%\snappy_unittest
|
- out\%CONFIGURATION%\snappy_unittest
|
||||||
|
|||||||
18
.travis.yml
18
.travis.yml
@@ -30,27 +30,27 @@ addons:
|
|||||||
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
|
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
|
||||||
sources:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
- llvm-toolchain-trusty-4.0
|
- llvm-toolchain-trusty-5.0
|
||||||
packages:
|
packages:
|
||||||
- cmake
|
- cmake
|
||||||
- gcc-6
|
- gcc-7
|
||||||
- g++-6
|
- g++-7
|
||||||
- clang-4.0
|
- clang-5.0
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Travis doesn't have a DSL for installing homebrew packages yet. Status tracked
|
# Travis doesn't have a DSL for installing homebrew packages yet. Status tracked
|
||||||
# in https://github.com/travis-ci/travis-ci/issues/5377
|
# in https://github.com/travis-ci/travis-ci/issues/5377
|
||||||
# The Travis VM image for Mac already has a link at /usr/local/include/c++,
|
# The Travis VM image for Mac already has a link at /usr/local/include/c++,
|
||||||
# causing Homebrew's gcc@6 installation to error out. This was reported to
|
# causing Homebrew's gcc@7 installation to error out. This was reported to
|
||||||
# Homebrew maintainers at https://github.com/Homebrew/brew/issues/1742 and
|
# Homebrew maintainers at https://github.com/Homebrew/brew/issues/1742 and
|
||||||
# removing the link emerged as a workaround.
|
# removing the link emerged as a workaround.
|
||||||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
||||||
brew update;
|
brew update;
|
||||||
if [ -L /usr/local/include/c++ ]; then rm /usr/local/include/c++; fi;
|
if [ -L /usr/local/include/c++ ]; then rm /usr/local/include/c++; fi;
|
||||||
brew install gcc@6;
|
brew install gcc@7;
|
||||||
fi
|
fi
|
||||||
# /usr/bin/gcc is stuck to old versions by on both Linux and OSX.
|
# /usr/bin/gcc is stuck to old versions on both Linux and OSX.
|
||||||
- if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-7" CC="gcc-7"; fi
|
||||||
- echo ${CC}
|
- echo ${CC}
|
||||||
- echo ${CXX}
|
- echo ${CXX}
|
||||||
- ${CXX} --version
|
- ${CXX} --version
|
||||||
@@ -63,4 +63,4 @@ before_script:
|
|||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- build/snappy_unittest
|
- build/snappy_unittest
|
||||||
|
|||||||
Reference in New Issue
Block a user