Kart-Public/.travis.yml

47 lines
1.3 KiB
YAML
Raw Normal View History

2016-02-06 02:09:14 +00:00
language: c
2016-03-25 23:53:13 +00:00
sudo: required
2016-03-25 23:56:51 +00:00
dist: trusty
2016-03-25 23:16:35 +00:00
2016-05-27 22:36:16 +00:00
matrix:
include:
- os: linux
2016-05-27 22:38:09 +00:00
env: CC=gcc
2016-05-27 22:36:16 +00:00
- os: linux
2016-05-27 22:38:09 +00:00
env: CC=clang
2016-05-27 22:36:16 +00:00
- os: osx
2016-05-27 22:38:09 +00:00
env: CC=gcc
2016-05-27 22:36:16 +00:00
- os: osx
2016-05-27 22:38:09 +00:00
env: CC=clang
2016-02-05 23:39:06 +00:00
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:
- $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
- p7zip-full
2016-02-05 23:39:06 +00:00
before_script:
- wget --verbose --server-response -c http://rosenthalcastle.org/srb2/SRB2-v2115-assets-2.7z -O $HOME/srb2_cache/SRB2-v2115-assets-2.7z
- 7z x $HOME/srb2_cache/SRB2-v2115-assets-2.7z -oassets
2016-02-05 23:39:06 +00:00
- mkdir build
- cd build
- cmake ..
2016-05-27 22:36:16 +00:00
- set CFLAGS=-Wall -W -Werror
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
2016-03-25 23:56:05 +00:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sdl2_mixer game-music-emu p7zip ; fi
2016-03-26 01:43:17 +00:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -O -L https://www.libsdl.org/release/SDL2-2.0.4.dmg; hdiutil attach SDL2-2.0.4.dmg; sudo cp -a /Volumes/SDL2/SDL2.framework /Library/Frameworks/; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -O -L https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.dmg; hdiutil attach SDL2_mixer-2.0.1.dmg; sudo cp -a /Volumes/SDL2_mixer/SDL2_mixer.framework /Library/Frameworks/; fi
- mkdir -p $HOME/srb2_cache
2016-03-25 23:48:39 +00:00
2016-05-27 04:57:44 +00:00
script: make -k