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:44:48 +00:00
|
|
|
compiler: gcc
|
2016-05-28 21:16:29 +00:00
|
|
|
#gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
|
2016-05-27 22:36:16 +00:00
|
|
|
- os: linux
|
2016-05-28 02:24:02 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.8
|
2016-05-28 02:46:09 +00:00
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-28 21:16:29 +00:00
|
|
|
compiler: gcc-4.8
|
|
|
|
#gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
2016-05-28 02:24:02 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.9
|
2016-05-28 02:46:09 +00:00
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-28 21:16:29 +00:00
|
|
|
compiler: gcc-4.9
|
|
|
|
#gcc-4.9 (Ubuntu 4.9.3-8ubuntu2~14.04) 4.9.3
|
2016-05-28 02:24:02 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-5
|
2016-05-28 02:46:09 +00:00
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-28 21:16:29 +00:00
|
|
|
compiler: gcc-5
|
|
|
|
#gcc-5 (Ubuntu 5.3.0-3ubuntu1~14.04) 5.3.0 20151204
|
2016-05-28 02:24:02 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-6
|
2016-05-28 02:46:09 +00:00
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-28 21:22:50 +00:00
|
|
|
compiler: gcc-6
|
2016-05-28 21:16:29 +00:00
|
|
|
#gcc-6 (Ubuntu 6.1.1-3ubuntu11~14.04.1) 6.1.1 20160511
|
2016-05-28 02:24:02 +00:00
|
|
|
- os: linux
|
2016-05-28 01:12:46 +00:00
|
|
|
compiler: clang
|
2016-05-28 21:16:29 +00:00
|
|
|
#clang version 3.5.0 (tags/RELEASE_350/final)
|
2016-05-28 04:53:14 +00:00
|
|
|
- os: osx
|
|
|
|
osx_image: beta-xcode6.1
|
2016-05-28 21:16:29 +00:00
|
|
|
#Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
|
2016-05-28 04:53:14 +00:00
|
|
|
- os: osx
|
|
|
|
osx_image: beta-xcode6.2
|
2016-05-28 05:12:24 +00:00
|
|
|
compiler: gcc
|
2016-05-28 21:16:29 +00:00
|
|
|
#Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
|
2016-05-28 21:22:50 +00:00
|
|
|
- os: osx
|
|
|
|
osx_image: beta-xcode6.3
|
|
|
|
#
|
2016-05-28 05:12:24 +00:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode6.4
|
2016-05-28 21:16:29 +00:00
|
|
|
#Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
|
2016-05-28 05:12:24 +00:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7
|
2016-05-28 21:16:29 +00:00
|
|
|
#Apple LLVM version 7.0.0 (clang-700.0.72)
|
2016-05-28 05:12:24 +00:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7.1
|
2016-05-28 21:16:29 +00:00
|
|
|
#Apple LLVM version 7.0.0 (clang-700.1.76)
|
2016-05-28 05:12:24 +00:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7.2
|
2016-05-28 21:16:29 +00:00
|
|
|
#Apple LLVM version 7.0.2 (clang-700.1.81)
|
2016-05-28 05:12:24 +00:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7.3
|
2016-05-28 21:16:29 +00:00
|
|
|
#Apple LLVM version 7.3.0 (clang-703.0.31)
|
2016-02-05 23:39:06 +00:00
|
|
|
|
2016-02-06 04:19:38 +00:00
|
|
|
cache:
|
2016-05-28 03:06:59 +00:00
|
|
|
apt: true
|
2016-03-10 21:38:06 +00:00
|
|
|
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-05-28 04:33:44 +00:00
|
|
|
- if $_CC --version 2>/dev/null; then export CC=$_CC; fi;
|
2016-05-04 12:43:05 +00: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 23:39:06 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-05-28 21:44:38 +00:00
|
|
|
- export CFLAGS=-Wall -W -Werror
|
|
|
|
- cmake .. -DCMAKE_BUILD_TYPE=Release
|
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-05-28 06:53:42 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sdl2_mixer game-music-emu p7zip; fi
|
2016-05-28 07:22:59 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cmake||true; 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
|
2016-03-26 02:07:34 +00: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 20:27:41 +00:00
|
|
|
- mkdir -p $HOME/srb2_cache
|
2016-03-25 23:48:39 +00:00
|
|
|
|
2016-05-27 04:57:44 +00:00
|
|
|
script: make -k
|