-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.03 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
language: cpp
compiler: gcc
before_install:
- sudo add-apt-repository ppa:zoogie/sdl2-snapshots -y
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.8
- export CXX="g++-4.8"
- sudo apt-get install cmake
- sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsdl2-net-dev
#need to build sdl2_gfx
- curl -O http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-1.0.1.tar.gz
- tar -xzvf SDL2_gfx-1.0.1.tar.gz
- cd SDL2_gfx-1.0.1
- ./autogen.sh
- ./configure
- make
- sudo make install
- cd ..
#- python retrieve_extern.py
#need stigame
- git clone https://github.com/jordsti/stigame.git
- mkdir stigame-build
- cd stigame-build
- cmake ../stigame -DCMAKE_BUILD_TYPE:STRING=Release -DSDL2_GFX_PATH:PATH=../SDL2_gfx-1.0.1
- make
- make install
- cd ..
script:
- mkdir cmake_build
- cd cmake_build
- cmake ../ -DCMAKE_BUILD_TYPE:STRING=Release -DTRAVIS_BUILD:STRING=YES
- make
- make install