update ci

This commit is contained in:
Neargye 2018-05-25 19:07:50 +05:00
parent 3f4154c579
commit 4fa2614c30
2 changed files with 111 additions and 8 deletions

View file

@ -8,6 +8,7 @@ platform:
configuration: configuration:
- Debug - Debug
- Release
shallow_clone: true shallow_clone: true

View file

@ -1,3 +1,4 @@
os: linux
dist: trusty dist: trusty
sudo: required sudo: required
@ -59,6 +60,65 @@ matrix:
env: env:
- CXX_COMPILER=g++-7 CC_COMPILER=gcc-7 CONFIGURATION=Debug - CXX_COMPILER=g++-7 CC_COMPILER=gcc-7 CONFIGURATION=Debug
- os: linux
compiler: g++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env:
- CXX_COMPILER=g++-8 CC_COMPILER=gcc-8 CONFIGURATION=Debug
- os: linux
compiler: clang++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- clang-3.6
env:
- CXX_COMPILER=clang++-3.6 CC_COMPILER=clang-3.6 CONFIGURATION=Debug
- os: linux
compiler: clang++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
- clang-3.7
env:
- CXX_COMPILER=clang++-3.7 CC_COMPILER=clang-3.7 CONFIGURATION=Debug
- os: linux
compiler: clang++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- clang-3.8
env:
- CXX_COMPILER=clang++-3.8 CC_COMPILER=clang-3.8 CONFIGURATION=Debug
- os: linux
compiler: clang++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.9
packages:
- clang-3.9
env:
- CXX_COMPILER=clang++-3.9 CC_COMPILER=clang-3.9 CONFIGURATION=Debug
- os: linux - os: linux
compiler: clang++ compiler: clang++
addons: addons:
@ -95,6 +155,48 @@ matrix:
env: env:
- CXX_COMPILER=clang++-6.0 CC_COMPILER=clang-6.0 CONFIGURATION=Debug - CXX_COMPILER=clang++-6.0 CC_COMPILER=clang-6.0 CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode7.0
env:
- CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode7.1
env:
- CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode7.2
env:
- CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode7.3
env:
- CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode8.0
env:
- CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode8.1
env:
- CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode8.2
env:
- CONFIGURATION=Debug
- os: osx - os: osx
compiler: clang++ compiler: clang++
osx_image: xcode8.3 osx_image: xcode8.3
@ -126,19 +228,19 @@ matrix:
- CONFIGURATION=Debug - CONFIGURATION=Debug
install: install:
- | - export CC=${CC_COMPILER}
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then - export CXX=${CXX_COMPILER}
export CXX=${CXX_COMPILER} - JOBS=2 # Travis machines have 2 cores.
export CC=${CC_COMPILER}
fi
script: before_script:
- rm -rf build - rm -rf build
- mkdir -p build - mkdir -p build
- cd build - cd build
- cmake .. -DCMAKE_BUILD_TYPE=${CONFIGURATION} - cmake .. -DCMAKE_BUILD_TYPE=${CONFIGURATION}
- cmake --build . --config ${CONFIGURATION}
- ctest -V --output-on-failure -С ${CONFIGURATION} script:
- cmake --build . --config ${CONFIGURATION} -- -j${JOBS}
- ctest -V --output-on-failure -С ${CONFIGURATION} -j${JOBS}
notifications: notifications:
email: false email: false