2013-12-19 15:07:58 -05:00
|
|
|
language: cpp
|
2020-05-09 09:56:39 -04:00
|
|
|
cache: ccache
|
2014-05-10 08:03:36 -04:00
|
|
|
|
2017-12-22 13:25:46 -05:00
|
|
|
# Use Linux by default
|
|
|
|
os: linux
|
2020-05-09 09:56:39 -04:00
|
|
|
dist: bionic
|
|
|
|
|
|
|
|
# CMake version out of date: update
|
|
|
|
# TODO: add ARM64, PPC, SPARC builds when we find CMake for them
|
|
|
|
addons:
|
|
|
|
snaps:
|
|
|
|
- name: cmake
|
|
|
|
confinement: classic
|
|
|
|
channel: latest
|
2014-05-10 08:03:36 -04:00
|
|
|
|
2017-10-21 09:25:21 -04:00
|
|
|
matrix:
|
2017-12-22 13:25:46 -05:00
|
|
|
include:
|
2020-05-09 09:56:39 -04:00
|
|
|
# AppleClang Release
|
2017-12-22 13:25:46 -05:00
|
|
|
# OSX workers are slower to start up. Having these first in the build matrix makes travis faster overall.
|
|
|
|
- os: osx
|
2020-05-09 09:56:39 -04:00
|
|
|
osx_image: xcode11.3
|
2020-03-27 06:20:30 -04:00
|
|
|
before_install:
|
|
|
|
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
|
2017-12-22 13:25:46 -05:00
|
|
|
env: &Release
|
2019-12-28 06:53:37 -05:00
|
|
|
- TRAVIS_CUBERITE_BUILD_TYPE=RELEASE
|
2020-05-09 09:56:39 -04:00
|
|
|
|
|
|
|
# AppleClang Debug
|
2017-12-22 13:25:46 -05:00
|
|
|
- os: osx
|
2020-05-09 09:56:39 -04:00
|
|
|
osx_image: xcode11.3
|
2020-03-27 06:20:30 -04:00
|
|
|
before_install:
|
|
|
|
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
|
2020-05-09 09:56:39 -04:00
|
|
|
env: &Debug
|
|
|
|
- TRAVIS_CUBERITE_BUILD_TYPE=DEBUG
|
|
|
|
|
|
|
|
# Clang 7.0 - Release
|
2017-12-22 13:25:46 -05:00
|
|
|
- compiler: clang
|
2020-05-09 09:56:39 -04:00
|
|
|
before_install: &use-cmake
|
|
|
|
- export PATH=/snap/bin/:${PATH}
|
2017-12-22 13:25:46 -05:00
|
|
|
env: *Release
|
2020-05-09 09:56:39 -04:00
|
|
|
|
|
|
|
# Clang 7.0 - Debug
|
2017-12-22 13:25:46 -05:00
|
|
|
- compiler: clang
|
2020-05-09 09:56:39 -04:00
|
|
|
before_install: *use-cmake
|
2017-12-22 13:25:46 -05:00
|
|
|
env: *Debug
|
2020-05-09 09:56:39 -04:00
|
|
|
|
|
|
|
# GCC 7.4 - Release, CMake 3.12
|
2017-12-22 13:25:46 -05:00
|
|
|
- compiler: gcc
|
|
|
|
env: *Release
|
2020-05-09 09:56:39 -04:00
|
|
|
|
|
|
|
# GCC 7.4 - Debug
|
2017-12-22 13:25:46 -05:00
|
|
|
- compiler: gcc
|
2020-05-09 09:56:39 -04:00
|
|
|
before_install: *use-cmake
|
2017-12-22 13:25:46 -05:00
|
|
|
env: *Debug
|
2017-10-21 09:25:21 -04:00
|
|
|
|
2019-11-10 11:55:24 -05:00
|
|
|
before_script:
|
|
|
|
- export PATH=$(echo "$PATH" | sed -e 's/:\/usr\/lib\/ccache//')
|
2020-02-24 06:28:24 -05:00
|
|
|
script: ./travisbuild.sh
|
2014-05-10 08:03:36 -04:00
|
|
|
|
2013-12-19 15:42:40 -05:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2015-11-07 09:01:59 -05:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|