discord-rpc/.travis.yml

48 lines
1.1 KiB
YAML
Raw Normal View History

2017-11-15 12:04:42 -07:00
language: cpp
env:
global:
2017-11-16 16:00:41 -07: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 12:04:42 -07: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-16 16:00:41 -07:00
- clang-4.0
2017-11-16 15:17:00 -07: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 15:27:03 -07:00
- os: osx
osx_image: xcode9
2017-11-15 12:04:42 -07:00
# prevent Travis from overwriting our CXX variables
before_install:
- eval "${MATRIX_EVAL}"
2017-11-16 15:27:03 -07:00
- echo $CXX
2017-11-15 12:04:42 -07:00
script:
- mkdir build
- cd build
- cmake -DCLANG_FORMAT_SUFFIX=$CLANG_FORMAT_SUFFIX -DWARNINGS_AS_ERRORS=On --config Release ..
2017-11-15 12:04:42 -07:00
- cmake --build . -- -j2