summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: b5d953c1873fb0638f6184df927c350247456168 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: cpp
cache: ccache

# Use Linux by default
os: linux
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

matrix:
  include:
    # AppleClang Release
    # OSX workers are slower to start up.  Having these first in the build matrix makes travis faster overall.
    - os: osx
      osx_image: xcode11.3
      before_install:
        - HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
      env: &Release
        - TRAVIS_CUBERITE_BUILD_TYPE=RELEASE

    # AppleClang Debug
    - os: osx
      osx_image: xcode11.3
      before_install:
        - HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
      env: &Debug
        - TRAVIS_CUBERITE_BUILD_TYPE=DEBUG

    # Clang 7.0 - Release
    - compiler: clang
      before_install: &use-cmake
        - export PATH=/snap/bin/:${PATH}
      env: *Release

    # Clang 7.0 - Debug
    - compiler: clang
      before_install: *use-cmake
      env: *Debug

    # GCC 7.4 - Release, CMake 3.12
    - compiler: gcc
      env: *Release

    # GCC 7.4 - Debug
    - compiler: gcc
      before_install: *use-cmake
      env: *Debug

before_script:
  - export PATH=$(echo "$PATH" | sed -e 's/:\/usr\/lib\/ccache//')
script: ./travisbuild.sh

notifications:
  email:
    on_success: change
    on_failure: always
branches:
  only:
    - master