discord-rpc/.travis.yml

48 lines
1.1 KiB
YAML
Raw Normal View History

2017-11-15 20:04:42 +01:00
language: cpp
env:
global:
2017-11-17 00:00:41 +01:00
- CLANG_FORMAT_SUFFIX="-dummy" # don't use formatting on Travis, this is
# needed not to use default 3.5 version
# which is too old.
2017-11-15 20:04:42 +01:00
matrix:
include:
- os: linux
env: MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- os: linux
env: MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
packages:
2017-11-17 00:00:41 +01:00
- clang-4.0
2017-11-16 23:17:00 +01:00
- os: linux
env: MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
2017-11-16 23:27:03 +01:00
- os: osx
osx_image: xcode9
2017-11-15 20:04:42 +01:00
# prevent Travis from overwriting our CXX variables
before_install:
- eval "${MATRIX_EVAL}"
2017-11-16 23:27:03 +01:00
- echo $CXX
2017-11-15 20:04:42 +01:00
script:
- mkdir build
- cd build
- cmake -DCLANG_FORMAT_SUFFIX=$CLANG_FORMAT_SUFFIX --config Release ..
- cmake --build . -- -j2