1
0
cuberite-2a/.travis.yml
peterbell10 832b394715 Fix Travis build (#4101)
Stop using gdb on osx - was breaking the build
Add clang 3.5 build as travis now defaults to 5.0
Fix unknown-warning-option errors on AppleClang
ProtoProxy: Use nullptr
UrlClientTest: add override to callback destructor
Update jsoncpp to use nullptr
2017-12-22 18:25:46 +00:00

79 lines
1.7 KiB
YAML

language: cpp
sudo: false
# Use Linux by default
os: linux
matrix:
include:
# AppleClang
# OSX workers are slower to start up. Having these first in the build matrix makes travis faster overall.
- os: osx
compiler: clang
env: &Release
- TRAVIS_CUBERITE_BUILD_TYPE=RELEASE CUBERITE_PATH=./Cuberite
- os: osx
compiler: clang
env: &Debug
- TRAVIS_CUBERITE_BUILD_TYPE=DEBUG CUBERITE_PATH=./Cuberite_debug
# Default clang
- compiler: clang
addons: &gdb
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gdb
env: *Release
- compiler: clang
addons: *gdb
env: *Debug
# clang 3.5
- compiler: clang
addons: &clang35
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
packages:
- clang++-3.5
- clang-3.5
- gdb
before_install:
- CC=clang-3.5;CXX=clang++-3.5
env: *Release
- compiler: clang
addons: *clang35
before_install:
- CC=clang-3.5;CXX=clang++-3.5
env: *Debug
# gcc 4.8
- compiler: gcc
addons: &gcc48
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- gcc-4.8
- gdb
before_install:
- CC=gcc-4.8;CXX=g++-4.8
env: *Release
- compiler: gcc
addons: *gcc48
before_install:
- CC=gcc-4.8;CXX=g++-4.8
env: *Debug
script: ./CIbuild.sh
notifications:
email:
on_success: change
on_failure: always
branches:
only:
- coverity_scan
- master