forked from endless-sky/endless-sky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (50 loc) · 1.27 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
language: cpp
sudo: required
matrix:
include:
- dist: trusty
- dist: xenial
env: DIST_DEPS=scons
- os: osx
env: MODE=Release
addons:
homebrew:
packages:
- libmad
- libpng
- jpeg-turbo
- sdl2
update: true
git:
quiet: true
depth: 5
branches:
except:
- gh-pages
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get -qq update;
sudo apt-get install -y $DEP_ARGS $DIST_DEPS;
fi
env:
global:
- DEP_ARGS="libsdl2-dev libpng12-dev libjpeg-turbo8-dev libglew-dev libopenal-dev libgl1-mesa-dev libmad0-dev libegl1-mesa-dev libgles2-mesa-dev"
script:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
scons -j2;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
xcodebuild -configuration $MODE install -quiet
fi
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
es_path=./endless-sky;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
es_path=/tmp/EndlessSky.dst/Applications/EndlessSky.app/Contents/MacOS/EndlessSky
fi
./test_parse.sh $es_path
notifications:
email:
on_success: never
on_failure: change