-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
79 lines (72 loc) · 1.9 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
sudo: false
matrix:
include:
- os: linux
sudo: required
#dist: trusty
compiler: clang
- os: osx
compiler: clang
git:
depth: 5
addons:
apt:
packages:
- mesa-common-dev
- swig
- libsdl2-dev
- libsdl2-image-dev
- libsdl2-ttf-dev
- libfreetype6-dev
- libxcursor-dev
- libopenal-dev
- libasound2-dev
- zlib1g-dev
- libboost-dev
- libboost-regex-dev
- libboost-system-dev
- libboost-filesystem-dev
- libboost-test-dev
- libtinyxml-dev
- libglew-dev
before_install:
# Swig (we need 3.0.8+)
- if [ $TRAVIS_OS_NAME == linux ]; then sudo add-apt-repository ppa:timsc/swig-3.0.12 -y; sudo apt-get update -q; sudo apt-get install swig; fi
# fetch additional libs
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get -qq update && sudo apt-get install -y libgle3-dev liballegro5-dev libvorbis-dev libalut-dev cppcheck; fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install swig sdl2 sdl2_image sdl2_ttf allegro freetype openal-soft tinyxml glew; fi
#
# install fifechan
#
- git clone --quiet --depth 1 git://github.com/fifengine/fifechan.git
- mkdir build_fifechan
- cd build_fifechan
- cmake ../fifechan
- make -j4 VERBOSE=1
- sudo make install
- cd ..
#
# install fife
#
- git clone --quiet --depth 1 git://github.com/fifengine/fifengine.git
- mkdir build_fifengine
- cd build_fifengine
- cmake ../fifengine -Dbuild-library:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=OFF
- make -j4 VERBOSE=1
- sudo make install
- cd ..
# build fifengine-cpp-tutorials
script:
# leave /home/travis/build/fifengine/cpp-tutorials
- cd ..
# start out-of-source-tree build
- mkdir build_cpp_tutorials
- cd build_cpp_tutorials
- cmake ../cpp-tutorials/src
- make -j4 VERBOSE=1
- sudo make install
- cd ..
#notifications:
# irc: "irc.freenode.org#fife"
# email: false