2016-02-06 02:09:14 +00:00
|
|
|
language: c
|
2016-03-25 23:16:35 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
- os: osx
|
2016-02-05 23:39:06 +00:00
|
|
|
|
2016-02-06 03:54:50 +00:00
|
|
|
env:
|
|
|
|
- CFLAGS=-Wno-absolute-value -Werror
|
|
|
|
|
2016-02-05 23:39:06 +00:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
2016-02-06 04:19:38 +00:00
|
|
|
cache:
|
2016-03-10 21:38:06 +00:00
|
|
|
apt: true
|
|
|
|
ccache: true
|
2016-02-06 04:19:38 +00:00
|
|
|
directories:
|
2016-02-26 06:48:11 +00:00
|
|
|
- $HOME/srb2_cache
|
2016-02-06 04:19:38 +00:00
|
|
|
|
2016-02-05 23:39:06 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2016-02-05 23:50:02 +00:00
|
|
|
- libsdl2-mixer-dev
|
2016-02-05 23:39:06 +00:00
|
|
|
- libpng-dev
|
2016-02-06 00:26:59 +00:00
|
|
|
- libgl1-mesa-dev
|
2016-02-06 02:00:46 +00:00
|
|
|
- libgme-dev
|
2016-02-06 02:15:32 +00:00
|
|
|
- p7zip-full
|
2016-02-05 23:39:06 +00:00
|
|
|
|
|
|
|
before_script:
|
2016-03-07 21:06:04 +00:00
|
|
|
- mkdir -p $HOME/srb2_cache
|
2016-02-26 06:48:11 +00:00
|
|
|
- wget --verbose --server-response -c http://rosenthalcastle.org/srb2/SRB2-v2114-assets.7z -O $HOME/srb2_cache/SRB2-v2114-assets.7z
|
2016-02-26 06:39:08 +00:00
|
|
|
- 7z x $HOME/srb2_cache/SRB2-v2114-assets.7z -oassets
|
2016-02-05 23:39:06 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
2016-02-06 01:50:35 +00:00
|
|
|
|
2016-03-25 23:48:39 +00:00
|
|
|
before_install:
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sdl2_mixer libsdl game-music-emu p7zip ; fi
|
|
|
|
|
2016-02-06 02:33:00 +00:00
|
|
|
script: make
|