mirror of
https://github.com/yuzu-emu/discord-rpc
synced 2024-11-21 23:13:34 +00:00
98855b4d84
#210 was created under assumption `build.py` is actually used, but upon inspecting `.travis.yml` it turns out it is not.
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
language: cpp
|
|
|
|
env:
|
|
global:
|
|
- CLANG_FORMAT_SUFFIX="-dummy" # don't use formatting on Travis, this is
|
|
# needed not to use default 3.5 version
|
|
# which is too old.
|
|
|
|
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:
|
|
- clang-4.0
|
|
- 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
|
|
- os: osx
|
|
osx_image: xcode9
|
|
|
|
# prevent Travis from overwriting our CXX variables
|
|
before_install:
|
|
- eval "${MATRIX_EVAL}"
|
|
- echo $CXX
|
|
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -DCLANG_FORMAT_SUFFIX=$CLANG_FORMAT_SUFFIX -DWARNINGS_AS_ERRORS=On --config Release ..
|
|
- cmake --build . -- -j2
|