2013-12-19 15:07:58 -05:00
|
|
|
language: cpp
|
2020-05-21 18:52:19 -04:00
|
|
|
cache:
|
|
|
|
ccache: true
|
|
|
|
directories:
|
|
|
|
# Store ctest cost data
|
|
|
|
- Testing
|
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
|
|
|
|
|
2020-09-20 14:02:00 -04:00
|
|
|
# Install newer SeeMake on Linux
|
|
|
|
addons:
|
|
|
|
snaps:
|
|
|
|
- name: cmake
|
|
|
|
confinement: classic
|
|
|
|
channel: latest
|
2014-05-10 08:03:36 -04:00
|
|
|
|
2020-05-16 07:57:14 -04:00
|
|
|
jobs:
|
2017-12-22 13:25:46 -05:00
|
|
|
include:
|
2020-05-21 18:52:19 -04:00
|
|
|
# ARM workers are the slowest. Having these first in the build matrix makes travis faster overall.
|
2021-02-10 11:46:42 -05:00
|
|
|
- name: "Clang 10.0 - Debug"
|
2020-05-21 18:52:19 -04:00
|
|
|
arch: arm64
|
|
|
|
compiler: clang
|
2021-02-10 11:46:42 -05:00
|
|
|
dist: focal # For Clang 10, bionic is Clang 6 for some reason.
|
2020-09-20 14:02:00 -04:00
|
|
|
before_install: &use-cmake
|
|
|
|
- export PATH=/snap/bin/:${PATH}
|
2020-05-21 18:52:19 -04:00
|
|
|
env: *Debug
|
2020-05-09 09:56:39 -04:00
|
|
|
|
2020-05-16 07:57:14 -04:00
|
|
|
- name: "AppleClang - Debug"
|
|
|
|
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
|
2020-05-16 15:59:10 -04:00
|
|
|
- TRAVIS_CUBERITE_BUILD_TYPE=Debug
|
2020-05-09 09:56:39 -04:00
|
|
|
|
2020-05-16 07:57:14 -04:00
|
|
|
- name: "Clang 7.0 - Release"
|
|
|
|
compiler: clang
|
2020-09-20 14:02:00 -04:00
|
|
|
before_install: *use-cmake
|
2017-12-22 13:25:46 -05:00
|
|
|
env: *Release
|
2020-05-09 09:56:39 -04:00
|
|
|
|
2020-05-16 07:57:14 -04:00
|
|
|
- name: "Clang 7.0 - Debug"
|
|
|
|
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
|
|
|
|
2020-09-20 14:02:00 -04:00
|
|
|
- name: "GCC 7.5 - Release, CMake 3.13, No Unity"
|
2020-05-16 07:57:14 -04:00
|
|
|
compiler: gcc
|
2020-05-16 15:59:10 -04:00
|
|
|
before_install:
|
|
|
|
- wget --output-document=${HOME}/CMake http://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.tar.gz
|
|
|
|
- tar --extract --one-top-level=${HOME}/SeeMake --strip-components 1 --file ${HOME}/CMake
|
|
|
|
- export PATH=${HOME}/SeeMake/bin/:${PATH}
|
|
|
|
env:
|
|
|
|
- TRAVIS_CUBERITE_BUILD_TYPE=Release
|
|
|
|
- TRAVIS_CUBERITE_UNITY_BUILDS=No
|
2020-05-09 09:56:39 -04:00
|
|
|
|
2020-09-20 14:02:00 -04:00
|
|
|
- name: "GCC 7.5 - Debug"
|
2020-05-16 07:57:14 -04: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
|
|
|
|
2020-07-06 19:04:32 -04:00
|
|
|
# Do not let CMake find ccache wrappers
|
|
|
|
# we use CMAKE_CXX_COMPILER_LAUNCHER for ccache support
|
|
|
|
before_script:
|
|
|
|
- export PATH=$(echo "$PATH" | sed -e 's/:\/usr\/lib\/ccache//')
|
|
|
|
|
2020-05-21 18:52:19 -04:00
|
|
|
# Run the build and tests
|
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
|
2020-05-21 18:52:19 -04:00
|
|
|
|
2015-11-07 09:01:59 -05:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|