toml11/.travis.yml

294 lines
7.2 KiB
YAML
Raw Normal View History

2017-05-13 06:20:17 +00:00
dist: trusty
matrix:
include:
2017-05-17 00:23:52 +00:00
- os: linux
language: cpp
compiler: gcc
2020-01-08 14:17:38 +00:00
env: COMPILER="g++-5" CXX_STANDARD=11
2017-05-17 00:23:52 +00:00
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
2017-05-17 00:23:52 +00:00
packages:
- g++-5
2019-06-20 11:13:16 +00:00
- boost1.70
2019-03-14 13:58:44 +00:00
- os: linux
language: cpp
compiler: gcc
2020-01-08 14:17:38 +00:00
env: COMPILER="g++-6" CXX_STANDARD=11
2019-03-14 13:58:44 +00:00
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
2019-03-14 13:58:44 +00:00
packages:
- g++-6
2019-06-20 11:13:16 +00:00
- boost1.70
2019-03-14 13:58:44 +00:00
- os: linux
language: cpp
compiler: gcc
2020-01-08 14:17:38 +00:00
env: COMPILER="g++-7" CXX_STANDARD=11
2019-03-14 13:58:44 +00:00
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
2019-03-14 13:58:44 +00:00
packages:
- g++-7
2019-06-20 11:13:16 +00:00
- boost1.70
2019-03-14 13:58:44 +00:00
- os: linux
language: cpp
compiler: gcc
2020-01-08 14:17:38 +00:00
env: COMPILER="g++-8" CXX_STANDARD=11
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
packages:
- g++-8
2019-06-20 11:13:16 +00:00
- boost1.70
- os: linux
language: cpp
compiler: gcc
env: COMPILER="g++-8" CXX_STANDARD=11 TOML_HEAD=ON
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'ppa:mhier/libboost-latest'
packages:
- g++-8
- boost1.70
- os: linux
language: cpp
compiler: gcc
2020-01-08 14:17:38 +00:00
env: COMPILER="g++-8" CXX_STANDARD=17
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'ppa:mhier/libboost-latest'
packages:
- g++-8
- boost1.70
- os: linux
language: cpp
compiler: gcc
env: COMPILER="g++-8" CXX_STANDARD=17 TOML_HEAD=ON
2019-03-14 13:58:44 +00:00
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
2019-03-14 13:58:44 +00:00
packages:
- g++-8
2019-06-20 11:13:16 +00:00
- boost1.70
2017-05-17 00:23:52 +00:00
- os: linux
language: cpp
compiler: clang
2020-01-08 14:17:38 +00:00
env: COMPILER="clang++-3.9" CXX_STANDARD=11
2017-05-17 00:23:52 +00:00
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
2019-10-15 12:31:45 +00:00
- llvm-toolchain-trusty-3.9
2017-05-17 00:23:52 +00:00
packages:
2019-06-20 11:24:12 +00:00
- g++-8
2019-10-15 12:31:45 +00:00
- clang-3.9
2019-06-20 11:13:16 +00:00
- boost1.70
2019-03-14 13:58:44 +00:00
- os: linux
language: cpp
compiler: clang
2020-01-08 14:17:38 +00:00
env: COMPILER="clang++-4.0" CXX_STANDARD=11
2019-03-14 13:58:44 +00:00
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
2019-10-15 12:31:45 +00:00
- llvm-toolchain-trusty-4.0
2019-03-14 13:58:44 +00:00
packages:
2019-06-20 11:24:12 +00:00
- g++-8
2019-03-14 13:58:44 +00:00
- clang-4.0
2019-06-20 11:13:16 +00:00
- boost1.70
2019-03-14 13:58:44 +00:00
- os: linux
language: cpp
compiler: clang
2020-01-08 14:17:38 +00:00
env: COMPILER="clang++-5.0" CXX_STANDARD=11
2019-03-14 13:58:44 +00:00
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
2019-10-15 12:31:45 +00:00
- llvm-toolchain-trusty-5.0
2019-03-14 13:58:44 +00:00
packages:
2019-06-20 11:24:12 +00:00
- g++-8
2019-03-14 13:58:44 +00:00
- clang-5.0
2019-06-20 11:13:16 +00:00
- boost1.70
2019-03-14 13:58:44 +00:00
- os: linux
language: cpp
compiler: clang
2020-01-08 14:17:38 +00:00
env: COMPILER="clang++-6.0" CXX_STANDARD=11
2019-03-14 13:58:44 +00:00
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
2019-10-15 12:31:45 +00:00
- llvm-toolchain-trusty-6.0
2019-03-14 13:58:44 +00:00
packages:
2019-06-20 11:24:12 +00:00
- g++-8
2019-03-14 13:58:44 +00:00
- clang-6.0
2019-06-20 11:13:16 +00:00
- boost1.70
2019-03-14 13:58:44 +00:00
- os: linux
language: cpp
compiler: clang
2020-01-08 14:17:38 +00:00
env: COMPILER="clang++-7" CXX_STANDARD=11
2019-03-14 13:58:44 +00:00
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
2019-10-15 12:31:45 +00:00
- llvm-toolchain-trusty-7
2019-03-14 13:58:44 +00:00
packages:
2019-06-20 11:24:12 +00:00
- g++-8
2019-03-14 13:58:44 +00:00
- clang-7
2019-06-20 11:13:16 +00:00
- boost1.70
2019-03-14 13:58:44 +00:00
- os: linux
language: cpp
compiler: clang
2020-01-08 14:17:38 +00:00
env: COMPILER="clang++-8" CXX_STANDARD=11
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'ppa:mhier/libboost-latest'
2019-10-15 12:31:45 +00:00
- llvm-toolchain-trusty-8
packages:
- g++-8
- clang-8
- boost1.70
- os: linux
language: cpp
compiler: clang
env: COMPILER="clang++-8" CXX_STANDARD=11 TOML_HEAD=ON
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
2019-10-15 12:31:45 +00:00
- llvm-toolchain-trusty-8
packages:
2019-06-20 11:24:12 +00:00
- g++-8
- clang-8
2019-06-20 11:13:16 +00:00
- boost1.70
- os: linux
language: cpp
compiler: clang
2020-01-08 14:17:38 +00:00
env: COMPILER="clang++-8" CXX_STANDARD=17
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'ppa:mhier/libboost-latest'
2019-10-15 12:31:45 +00:00
- llvm-toolchain-trusty-8
packages:
- clang-8
- g++-8
- boost1.70
- os: linux
language: cpp
compiler: clang
env: COMPILER="clang++-8" CXX_STANDARD=17 TOML_HEAD=ON
2019-03-14 13:58:44 +00:00
addons:
apt:
sources:
2019-10-15 11:32:09 +00:00
- sourceline: 'ppa:ubuntu-toolchain-r/test'
2019-06-20 11:00:56 +00:00
- sourceline: 'ppa:mhier/libboost-latest'
2019-10-15 12:31:45 +00:00
- llvm-toolchain-trusty-8
2019-03-14 13:58:44 +00:00
packages:
- clang-8
- g++-8
2019-06-20 11:13:16 +00:00
- boost1.70
2020-01-08 14:28:17 +00:00
- os: linux
language: cpp
compiler: clang
env: COMPILER="clang++-8" CXX_STANDARD=11 WITH_ASAN=ON
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'ppa:mhier/libboost-latest'
- llvm-toolchain-trusty-8
packages:
- clang-8
- g++-8
- boost1.70
- os: linux
language: cpp
compiler: clang
env: COMPILER="clang++-8" CXX_STANDARD=11 WITH_UBSAN=ON
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
- sourceline: 'ppa:mhier/libboost-latest'
- llvm-toolchain-trusty-8
packages:
- clang-8
- g++-8
- boost1.70
2017-05-17 00:23:52 +00:00
- os: osx
language: cpp
compiler: clang
env: CXX_STANDARD=11
2019-10-15 12:40:37 +00:00
cache:
directories:
- $HOME/Library/Caches/Homebrew
2019-10-15 11:27:27 +00:00
addons:
homebrew:
update: true
packages:
- cmake
- boost
2017-05-13 06:20:17 +00:00
script:
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
mkdir -p cmake
2019-06-20 11:00:56 +00:00
travis_retry wget "https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz"
tar xf cmake-3.14.5-Linux-x86_64.tar.gz -C cmake --strip-components=1
export PATH=${TRAVIS_BUILD_DIR}/cmake/bin:${PATH}
fi
2020-01-08 14:17:38 +00:00
- |
if [[ "${TOML_HEAD}" != "ON" ]]; then
export TOML_HEAD="OFF"
fi
- echo "TOML_HEAD = ${TOML_HEAD}"
2020-01-08 14:28:17 +00:00
- |
if [[ "${WITH_ASAN}" != "ON" ]]; then
export WITH_ASAN="OFF"
fi
- echo "WITH_ASAN = ${WITH_ASAN}"
- |
if [[ "${WITH_UBSAN}" != "ON" ]]; then
export WITH_UBSAN="OFF"
fi
- echo "WITH_UBSAN = ${WITH_UBSAN}"
- cmake --version
2017-05-13 06:20:17 +00:00
- mkdir build
- cd build
- git clone https://github.com/toml-lang/toml.git
2020-01-08 14:28:17 +00:00
- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_CXX_STANDARD=$CXX_STANDARD -DTOML11_USE_UNRELEASED_TOML_FEATURES=${TOML_HEAD} -Dtoml11_TEST_WITH_ASAN=${WITH_ASAN} -Dtoml11_TEST_WITH_UBSAN=${WITH_UBSAN} ..
2017-05-13 06:20:17 +00:00
- make
2017-12-11 03:12:22 +00:00
- ctest --output-on-failure
2019-10-15 12:40:37 +00:00
# https://stackoverflow.com/a/53331571
before_cache:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew cleanup
fi