forked from eezstreet/OpenD2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 1.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
language: cpp
script: cmake
sudo: required
dist: trusty
before_install:
- wget https://www.libsdl.org/release/SDL2-2.0.7.tar.gz -O SDL2-2.0.7.tar.gz
- tar -xzvf SDL2-2.0.7.tar.gz
- wget https://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.0.1.tar.gz
- tar -xzvf SDL2_net-2.0.1.tar.gz
- wget https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
- tar -xzvf SDL2_mixer-2.0.4.tar.gz
install:
- sudo apt-get install libglew-dev libglm-dev
- (cd SDL2-2.0.7 && ./configure && make && sudo make install && cd ..)
- (cd SDL2_net-2.0.1 && ./configure && make && sudo make install && cd ..)
- (cd SDL2_mixer-2.0.4 && ./configure && make && sudo make install && cd ..)
matrix:
include:
# Linux x64 gcc
- os: linux
compiler: gcc
# macOS
- os: osx
compiler: clang
# Linux i686 gcc
- os: linux
compiler: gcc
env: host=i686-linux-gnu
script:
- mkdir build && cd build
- cmake .. -G "Unix Makefiles" -DSDL2MAIN_LIBRARY=/usr/lib64/libSDL2.so
- make