forked from freeminer/freeminer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
69 lines (61 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
65
66
67
68
69
language: cpp
cache: ccache
compiler:
- gcc
- clang
os:
- linux
- osx
matrix:
fast_finish: true
addons:
apt:
sources:
# NOTE gcc-4.9 breaks clang
- ubuntu-toolchain-r-test # for gcc-4.8
- llvm-toolchain-precise-3.7 # for clang
packages:
- clang
- cmake
- doxygen
- g++-4.8
- gcc-4.8
- libirrlicht-dev
- libleveldb-dev
- libogg-dev
- libopenal-dev
- libsnappy-dev
- libsqlite3-dev
- libvorbis-dev
- libxxf86vm-dev
- llvm-3.7
before_install:
- if [ $CC = 'gcc' ]; then
export CC='gcc-4.8';
export CXX='g++-4.8';
export LINK='gcc-4.8';
export LINKXX='g++-4.8';
else
export CC="clang";
export CXX="clang++";
fi
- if [ $TRAVIS_OS_NAME == 'osx' ]; then
brew update;
brew install gettext irrlicht libogg;
else
export PATH="/usr/lib/ccache/:$PATH";
ccache -s;
fi
- mkdir -p _build
- cd _build
script:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
cmake -DRUN_IN_PLACE=0 -DENABLE_GETTEXT=1 ..;
sudo make -j3 install;
freeminer --go -reconnects=5 -video_driver=null -enable_sound=0 -enable_clouds=0 -enable_fog=0 -autojump=1 -respawn_auto=1 -disable_anticheat=1 -random_input=1 -continuous_forward=1 --address '' --autoexit 15;
else
cmake .. -DGETTEXT_LIBRARY=/usr/local/opt/gettext/lib/libgettextlib.dylib -DGETTEXT_INCLUDE_DIR=/usr/local/opt/gettext/include;
make -j3 package;
fi
notifications:
email: false