-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (53 loc) · 1.52 KB
/
.travis.yml
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
# NOTE: We're using both Travis CI and Github Actions, if you change this file,
# also change .github/workflows/ci.yml accordingly.
language: cpp
# default is Xenial aka 16.04 and its yaml-cpp package is too old. Use Focal aka 20.04 instead.
dist: focal
cache: ccache
compiler:
- clang
- gcc
arch:
- amd64
- arm64
os:
- linux
# Our matrix is sparse, only linux has the full mesh, include the Mac/Win builds by hand.
jobs:
include:
- os: osx
compiler: clang # `gcc` is a wrapper for clang on MacOS, skip it.
before_install:
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
- os: windows
compiler: cl # cmake picks up MSVC and cl
install:
- export DEPS=https://openxcom.org/download/dev/openxcom-deps-win-vc2017.zip
- curl -O "$DEPS" && 7z x "${DEPS##*/}"
before_script:
- export BUILD_ARGS="/clp:NoSummary" # summary too big for the 4MiB Travis limit
addons:
apt:
packages:
- libsdl1.2-dev
- libsdl-mixer1.2-dev
- libsdl-image1.2-dev
- libsdl-gfx1.2-dev
- libyaml-cpp-dev
homebrew:
update: true
packages:
- ccache
- sdl
- sdl_gfx
- sdl_image
- sdl_mixer
- yaml-cpp
env:
- CMAKE_BUILD_TYPE=Release
script:
- mkdir -p build
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DENABLE_WARNING=1 -DCHECK_CCACHE=TRUE -B build .
- cmake --build build -v -j2 --config ${CMAKE_BUILD_TYPE} -- ${BUILD_ARGS}
after_script:
- if [ $TRAVIS_OS_NAME != windows ]; then ccache -s; fi