forked from endless-sky/endless-sky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
94 lines (83 loc) · 1.99 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
language: cpp
# Default job
os: linux
dist: xenial
stages:
- compile & unit test
- test
# Additional jobs
jobs:
fast_finish: true
include:
- dist: xenial
stage: compile & unit test
env:
AR: gcc-ar
RANLIB: gcc-ranlib
script: scons -Qj 2 && scons -Qj 2 test;
- dist: bionic
script: scons -Qj 2 && scons -Qj 2 test;
- dist: focal
script: scons -Qj 2 && scons -Qj 2 test;
- dist: xenial
stage: test
env:
AR: gcc-ar
RANLIB: gcc-ranlib
- os: osx
osx_image: xcode10.3
env:
ES_PATH: "'/tmp/EndlessSky.dst/Applications/Endless Sky.app/Contents/MacOS/Endless Sky'"
script:
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
- xcodebuild -configuration Release install -quiet
- ./tests/test_parse.sh "$ES_PATH"
addons:
homebrew:
packages:
- libmad
- libpng
- jpeg-turbo
- sdl2
- ccache
update: true
apt:
packages:
- libsdl2-dev
- libpng-dev
- libjpeg-turbo8-dev
- libopenal-dev
- libmad0-dev
- libglew-dev
- libgl1-mesa-dev
- libegl1-mesa-dev
- libgles2-mesa-dev
- scons
git:
quiet: true
depth: 2
branches:
only:
- master
- /^v[\d.]+$/
# Default script, in the 'test' stage
script:
- scons -Qj 2;
- ./tests/test_parse.sh ./endless-sky
before_cache:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi
# Credit https://discourse.brew.sh/t/best-practice-for-homebrew-on-travis-brew-update-is-5min-to-build-time/5215/9
# Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then find /usr/local/Homebrew \! -regex ".+\.git.+" -delete; fi
cache:
ccache: true
directories:
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
- lib/**
before_install:
- export CXX="ccache ${CXX}"
notifications:
email:
on_success: never
on_failure: change