mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Improved .travis.yml
* Removed ccache (it was slowing down the compilation for some reason) * Enabled some C++11 builds (gcc 4.8, gcc 6, clang 3.8 for now) * Added gcc 4.4, 4.7 and clang 3.4
This commit is contained in:
parent
7b8a27eadb
commit
a5ce57b346
137
.travis.yml
137
.travis.yml
@ -1,35 +1,35 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
cache:
|
|
||||||
ccache: true
|
|
||||||
directories:
|
|
||||||
- $HOME/.ccache
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- USE_CCACHE=1
|
|
||||||
- CCACHE_COMPRESS=1
|
|
||||||
- CCACHE_MAXSIZE=200M
|
|
||||||
- CCACHE_CPP2=1
|
|
||||||
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|
||||||
# 1/ Linux Clang Builds
|
# 1/ Linux Clang Builds
|
||||||
|
- os: linux
|
||||||
|
compiler: clang
|
||||||
|
addons: &clang34
|
||||||
|
apt:
|
||||||
|
sources: ['llvm-toolchain-precise', 'ubuntu-toolchain-r-test']
|
||||||
|
packages: ['clang']
|
||||||
|
env: COMPILER='clang++' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: clang
|
||||||
|
addons: *clang34
|
||||||
|
env: COMPILER='clang++' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
addons: &clang35
|
addons: &clang35
|
||||||
apt:
|
apt:
|
||||||
sources: ['llvm-toolchain-precise-3.5', 'ubuntu-toolchain-r-test']
|
sources: ['llvm-toolchain-precise-3.5', 'ubuntu-toolchain-r-test']
|
||||||
packages: ['clang-3.5']
|
packages: ['clang-3.5']
|
||||||
env: COMPILER='ccache clang++-3.5' BUILD_TYPE='Release'
|
env: COMPILER='clang++-3.5' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
addons: *clang35
|
addons: *clang35
|
||||||
env: COMPILER='ccache clang++-3.5' BUILD_TYPE='Debug'
|
env: COMPILER='clang++-3.5' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
@ -38,12 +38,12 @@ matrix:
|
|||||||
apt:
|
apt:
|
||||||
sources: ['llvm-toolchain-precise-3.6', 'ubuntu-toolchain-r-test']
|
sources: ['llvm-toolchain-precise-3.6', 'ubuntu-toolchain-r-test']
|
||||||
packages: ['clang-3.6']
|
packages: ['clang-3.6']
|
||||||
env: COMPILER='ccache clang++-3.6' BUILD_TYPE='Release'
|
env: COMPILER='clang++-3.6' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
addons: *clang36
|
addons: *clang36
|
||||||
env: COMPILER='ccache clang++-3.6' BUILD_TYPE='Debug'
|
env: COMPILER='clang++-3.6' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
@ -52,12 +52,12 @@ matrix:
|
|||||||
apt:
|
apt:
|
||||||
sources: ['llvm-toolchain-precise-3.7', 'ubuntu-toolchain-r-test']
|
sources: ['llvm-toolchain-precise-3.7', 'ubuntu-toolchain-r-test']
|
||||||
packages: ['clang-3.7']
|
packages: ['clang-3.7']
|
||||||
env: COMPILER='ccache clang++-3.7' BUILD_TYPE='Release'
|
env: COMPILER='clang++-3.7' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
addons: *clang37
|
addons: *clang37
|
||||||
env: COMPILER='ccache clang++-3.7' BUILD_TYPE='Debug'
|
env: COMPILER='clang++-3.7' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
@ -66,27 +66,55 @@ matrix:
|
|||||||
apt:
|
apt:
|
||||||
sources: ['llvm-toolchain-precise-3.8', 'ubuntu-toolchain-r-test']
|
sources: ['llvm-toolchain-precise-3.8', 'ubuntu-toolchain-r-test']
|
||||||
packages: ['clang-3.8']
|
packages: ['clang-3.8']
|
||||||
env: COMPILER='ccache clang++-3.8' BUILD_TYPE='Release'
|
env: COMPILER='clang++-3.8' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
addons: *clang38
|
addons: *clang38
|
||||||
env: COMPILER='ccache clang++-3.8' BUILD_TYPE='Debug'
|
env: COMPILER='clang++-3.8' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
|
|
||||||
# 2/ Linux GCC Builds
|
# 2/ Linux GCC Builds
|
||||||
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
addons: &gcc44
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
|
packages: ['g++-4.4']
|
||||||
|
env: COMPILER='g++-4.4' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
addons: *gcc44
|
||||||
|
env: COMPILER='g++-4.4' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
addons: &gcc47
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
|
packages: ['g++-4.7']
|
||||||
|
env: COMPILER='g++-4.7' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
addons: *gcc47
|
||||||
|
env: COMPILER='g++-4.7' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
addons: &gcc48
|
addons: &gcc48
|
||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test']
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
packages: ['g++-4.8']
|
packages: ['g++-4.8']
|
||||||
env: COMPILER='ccache g++-4.8' BUILD_TYPE='Release'
|
env: COMPILER='g++-4.8' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
addons: *gcc48
|
addons: *gcc48
|
||||||
env: COMPILER='ccache g++-4.8' BUILD_TYPE='Debug'
|
env: COMPILER='g++-4.8' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
@ -95,12 +123,12 @@ matrix:
|
|||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test']
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
packages: ['g++-4.9']
|
packages: ['g++-4.9']
|
||||||
env: COMPILER='ccache g++-4.9' BUILD_TYPE='Release'
|
env: COMPILER='g++-4.9' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
addons: *gcc49
|
addons: *gcc49
|
||||||
env: COMPILER='ccache g++-4.9' BUILD_TYPE='Debug'
|
env: COMPILER='g++-4.9' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
@ -109,34 +137,76 @@ matrix:
|
|||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test']
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
packages: ['g++-5']
|
packages: ['g++-5']
|
||||||
env: COMPILER='ccache g++-5' BUILD_TYPE='Release'
|
env: COMPILER='g++-5' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
addons: *gcc5
|
addons: *gcc5
|
||||||
env: COMPILER='ccache g++-5' BUILD_TYPE='Debug'
|
env: COMPILER='g++-5' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
|
|
||||||
# 3/ OSX Clang Builds
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
addons: &gcc6
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
|
packages: ['g++-6']
|
||||||
|
env: COMPILER='g++-6' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
addons: *gcc6
|
||||||
|
env: COMPILER='g++-6' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
|
# 3a/ Linux C++11 GCC builds
|
||||||
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
addons: &gcc48
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
|
packages: ['g++-4.8']
|
||||||
|
env: COMPILER='g++-4.8' BUILD_TYPE='Release' CPP11=1
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
addons: *gcc48
|
||||||
|
env: COMPILER='g++-4.8' BUILD_TYPE='Debug' CPP11=1
|
||||||
|
|
||||||
|
# 3b/ Linux C++11 Clang builds
|
||||||
|
- os: linux
|
||||||
|
compiler: clang
|
||||||
|
addons: &clang38
|
||||||
|
apt:
|
||||||
|
sources: ['llvm-toolchain-precise-3.8', 'ubuntu-toolchain-r-test']
|
||||||
|
packages: ['clang-3.8']
|
||||||
|
env: COMPILER='clang++-3.8' BUILD_TYPE='Release' CPP11=1
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: clang
|
||||||
|
addons: *clang38
|
||||||
|
env: COMPILER='clang++-3.8' BUILD_TYPE='Debug' CPP11=1
|
||||||
|
|
||||||
|
|
||||||
|
# 4/ OSX Clang Builds
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode7.3
|
osx_image: xcode7.3
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: COMPILER='ccache clang++' BUILD_TYPE='Debug'
|
env: COMPILER='clang++' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode7.3
|
osx_image: xcode7.3
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: COMPILER='ccache clang++' BUILD_TYPE='Release'
|
env: COMPILER='clang++' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode8
|
osx_image: xcode8
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: COMPILER='ccache clang++' BUILD_TYPE='Debug'
|
env: COMPILER='clang++' BUILD_TYPE='Debug' CPP11=0
|
||||||
|
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode8
|
osx_image: xcode8
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: COMPILER='ccache clang++' BUILD_TYPE='Release'
|
env: COMPILER='clang++' BUILD_TYPE='Release' CPP11=0
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@ -149,13 +219,12 @@ install:
|
|||||||
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
|
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
|
||||||
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
||||||
which cmake || brew install cmake
|
which cmake || brew install cmake
|
||||||
which ccache || brew install ccache
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- export CXX=${COMPILER}
|
- export CXX=${COMPILER}
|
||||||
- cd ${TRAVIS_BUILD_DIR}
|
- cd ${TRAVIS_BUILD_DIR}
|
||||||
- cmake -H. -BBuild -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -Wdev
|
- cmake -H. -BBuild -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -Wdev -DUSE_CPP11=${CPP11}
|
||||||
- cd Build
|
- cd Build
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
Loading…
Reference in New Issue
Block a user