forked from elonafoobar/elonafoobar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (71 loc) · 2.09 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
language: cpp
matrix:
include:
- os: linux
sudo: required
compiler: gcc-7
addons:
apt:
config:
retries: true
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- cmake
- zlib1g-dev
# Boost, Lua and SDL2 library versions provided are too old, they must be compiled manually.
- os: osx
compiler: clang
env:
global:
- SDL_VIDEODRIVER=dummy
- SDL_AUDIODRIVER=disk
- MAKEFLAGS=-j8
cache:
directories:
- $HOME/.ccache
- $HOME/download
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update &&
brew upgrade cmake boost &&
brew install sdl2 sdl2_ttf sdl2_image sdl2_mixer lua;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export CC="gcc-7";
export CXX="g++-7";
gcc -v && g++ -v;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then . "$TRAVIS_BUILD_DIR/.travis/before_install.sh"; fi
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export CC="gcc-7";
export CXX="g++-7";
gcc -v && g++ -v;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then . "$TRAVIS_BUILD_DIR/.travis/install.sh"; fi
script:
- cd "$TRAVIS_BUILD_DIR"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export CC="gcc-7";
export CXX="g++-7";
export LD_LIBRARY_PATH="/usr/lib:$LD_LIBRARY_PATH";
export LD_RUN_PATH="/usr/lib:$LD_RUN_PATH";
export CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=TRUE";
gcc -v && g++ -v;
export AUDIODEV=null;
fi
- env
- cd deps
- wget --no-verbose "http://ylvania.style.coocan.jp/file/elona122.zip"
- unzip -qq elona122.zip
- rm elona122.zip
- cd "$TRAVIS_BUILD_DIR"
- make clean
- make tests VERBOSE=1
- bin/ElonaFoobar
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ccache --show-stats; fi
notifications:
email: false