summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-05-09 15:56:39 +0200
committerGitHub <noreply@github.com>2020-05-09 15:56:39 +0200
commit804c3ba6e9e8f51f49df7cd85e547a8ff0c8bb5b (patch)
treed821dc9cc62a6a32a9b1e775bacade5b5e87946d /.travis.yml
parentFix clang-tidy errors (#4730) (diff)
downloadcuberite-804c3ba6e9e8f51f49df7cd85e547a8ff0c8bb5b.tar
cuberite-804c3ba6e9e8f51f49df7cd85e547a8ff0c8bb5b.tar.gz
cuberite-804c3ba6e9e8f51f49df7cd85e547a8ff0c8bb5b.tar.bz2
cuberite-804c3ba6e9e8f51f49df7cd85e547a8ff0c8bb5b.tar.lz
cuberite-804c3ba6e9e8f51f49df7cd85e547a8ff0c8bb5b.tar.xz
cuberite-804c3ba6e9e8f51f49df7cd85e547a8ff0c8bb5b.tar.zst
cuberite-804c3ba6e9e8f51f49df7cd85e547a8ff0c8bb5b.zip
Diffstat (limited to '')
-rw-r--r--.travis.yml76
1 files changed, 29 insertions, 47 deletions
diff --git a/.travis.yml b/.travis.yml
index 6f181e22d..b5d953c18 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,78 +1,60 @@
language: cpp
-sudo: false
+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:
- # gcc on arm64
- - compiler: gcc
- arch: arm64
- addons:
- apt:
- packages:
- - ccache
- env: &Debug
- - TRAVIS_CUBERITE_BUILD_TYPE=DEBUG
- # AppleClang
+ # AppleClang Release
# OSX workers are slower to start up. Having these first in the build matrix makes travis faster overall.
- os: osx
- compiler: clang
+ 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
- compiler: clang
- env: *Debug
+ osx_image: xcode11.3
before_install:
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
- # Default clang
- - compiler: clang
- env: *Release
- - compiler: clang
- env: *Debug
- # clang 3.5
+ env: &Debug
+ - TRAVIS_CUBERITE_BUILD_TYPE=DEBUG
+
+ # Clang 7.0 - Release
- compiler: clang
- dist: trusty
- addons: &clang35
- apt:
- packages:
- - clang++-3.5
- - clang-3.5
- before_install:
- - CC=clang-3.5;CXX=clang++-3.5
+ before_install: &use-cmake
+ - export PATH=/snap/bin/:${PATH}
env: *Release
+
+ # Clang 7.0 - Debug
- compiler: clang
- dist: trusty
- addons: *clang35
- before_install:
- - CC=clang-3.5;CXX=clang++-3.5
+ before_install: *use-cmake
env: *Debug
- # gcc 4.8
+
+ # GCC 7.4 - Release, CMake 3.12
- compiler: gcc
- addons: &gcc48
- apt:
- sources:
- - ubuntu-toolchain-r-test
- packages:
- - g++-4.8
- - gcc-4.8
- before_install:
- - CC=gcc-4.8;CXX=g++-4.8
env: *Release
+
+ # GCC 7.4 - Debug
- compiler: gcc
- addons: *gcc48
- before_install:
- - CC=gcc-4.8;CXX=g++-4.8
+ before_install: *use-cmake
env: *Debug
before_script:
- export PATH=$(echo "$PATH" | sed -e 's/:\/usr\/lib\/ccache//')
script: ./travisbuild.sh
-cache: ccache
-
notifications:
email: