2016-02-05 18:09:14 -08:00
|
|
|
language: c
|
2016-03-25 16:53:13 -07:00
|
|
|
sudo: required
|
2016-03-25 16:56:51 -07:00
|
|
|
dist: trusty
|
2016-03-25 16:16:35 -07:00
|
|
|
|
2016-05-27 15:36:16 -07:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2016-05-27 15:44:48 -07:00
|
|
|
compiler: gcc
|
2016-05-27 15:36:16 -07:00
|
|
|
- os: linux
|
2016-05-27 18:12:46 -07:00
|
|
|
compiler: gcc
|
2016-05-27 19:24:02 -07:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.8
|
2016-05-27 19:46:09 -07:00
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-27 20:40:23 -07:00
|
|
|
env: _CC=gcc-4.8
|
2016-05-27 19:24:02 -07:00
|
|
|
- os: linux
|
2016-05-27 18:12:46 -07:00
|
|
|
compiler: gcc
|
2016-05-27 19:24:02 -07:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.9
|
2016-05-27 19:46:09 -07:00
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-27 20:40:23 -07:00
|
|
|
env: _CC=gcc-4.9
|
2016-05-27 19:24:02 -07:00
|
|
|
- os: linux
|
2016-05-27 18:12:46 -07:00
|
|
|
compiler: gcc
|
2016-05-27 19:24:02 -07:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-5
|
2016-05-27 19:46:09 -07:00
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-27 20:40:23 -07:00
|
|
|
env: _CC=gcc-5
|
2016-05-27 19:24:02 -07:00
|
|
|
- os: linux
|
2016-05-27 18:12:46 -07:00
|
|
|
compiler: gcc
|
2016-05-27 19:24:02 -07:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-6
|
2016-05-27 19:46:09 -07:00
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-27 20:40:23 -07:00
|
|
|
env: _CC=gcc-6
|
2016-05-27 19:24:02 -07:00
|
|
|
- os: linux
|
2016-05-27 18:12:46 -07:00
|
|
|
compiler: clang
|
2016-05-27 20:06:59 -07:00
|
|
|
# - os: osx
|
|
|
|
# osx_image: beta-xcode6.1
|
|
|
|
# compiler: gcc
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: beta-xcode6.1
|
|
|
|
# compiler: clang
|
2016-05-27 19:24:02 -07:00
|
|
|
# - os: osx
|
|
|
|
# osx_image: beta-xcode6.2
|
2016-05-27 19:47:35 -07:00
|
|
|
# compiler: gcc
|
2016-05-27 19:24:02 -07:00
|
|
|
# - os: osx
|
|
|
|
# osx_image: beta-xcode6.2
|
|
|
|
# compiler: clang#
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: beta-xcode6.3
|
|
|
|
# compiler: gcc
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: beta-xcode6.3
|
|
|
|
# compiler: clang
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode6.4
|
|
|
|
# compiler: gcc
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode6.4
|
|
|
|
# compiler: clang
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7
|
|
|
|
# compiler: gcc
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7
|
|
|
|
# compiler: clang
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7.1
|
|
|
|
# compiler: gcc
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7.1
|
|
|
|
# compiler: clang
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7.2
|
|
|
|
# compiler: gcc
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7.2
|
|
|
|
# compiler: clang
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7.3
|
|
|
|
# compiler: gcc
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7.3
|
|
|
|
# compiler: clang
|
2016-02-05 15:39:06 -08:00
|
|
|
|
2016-02-05 20:19:38 -08:00
|
|
|
cache:
|
2016-05-27 20:06:59 -07:00
|
|
|
apt: true
|
2016-03-10 13:38:06 -08:00
|
|
|
ccache: true
|
2016-02-05 20:19:38 -08:00
|
|
|
directories:
|
2016-02-25 22:48:11 -08:00
|
|
|
- $HOME/srb2_cache
|
2016-02-05 20:19:38 -08:00
|
|
|
|
2016-02-05 15:39:06 -08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2016-02-05 15:50:02 -08:00
|
|
|
- libsdl2-mixer-dev
|
2016-02-05 15:39:06 -08:00
|
|
|
- libpng-dev
|
2016-02-05 16:26:59 -08:00
|
|
|
- libgl1-mesa-dev
|
2016-02-05 18:00:46 -08:00
|
|
|
- libgme-dev
|
2016-02-05 18:15:32 -08:00
|
|
|
- p7zip-full
|
2016-02-05 15:39:06 -08:00
|
|
|
|
|
|
|
before_script:
|
2016-05-27 20:40:23 -07:00
|
|
|
- $_CC --version&&export CC=$_CC
|
2016-05-04 05:43:05 -07:00
|
|
|
- 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 15:39:06 -08:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
2016-05-27 15:36:16 -07:00
|
|
|
- set CFLAGS=-Wall -W -Werror
|
2016-02-05 17:50:35 -08:00
|
|
|
|
2016-03-25 16:48:39 -07:00
|
|
|
before_install:
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
|
2016-05-27 19:24:02 -07:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sdl2_mixer game-music-emu p7zip cmake; fi
|
2016-03-25 18:43:17 -07: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
|
2016-03-25 19:07:34 -07:00
|
|
|
- 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
|
2016-05-16 13:27:41 -07:00
|
|
|
- mkdir -p $HOME/srb2_cache
|
2016-03-25 16:48:39 -07:00
|
|
|
|
2016-05-26 21:57:44 -07:00
|
|
|
script: make -k
|