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:
|
2016-05-28 23:15:37 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-30 21:16:58 +00:00
|
|
|
- gcc-4.4
|
2016-05-28 23:15:37 +00:00
|
|
|
compiler: gcc-4.4
|
2019-03-10 00:41:56 +00:00
|
|
|
env: GCC44=1
|
2016-05-29 13:40:56 +00:00
|
|
|
#gcc-4.4 (Ubuntu/Linaro 4.4.7-8ubuntu1) 4.4.7
|
2016-05-28 23:15:37 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-30 21:16:58 +00:00
|
|
|
- gcc-4.6
|
2016-05-28 23:15:37 +00:00
|
|
|
compiler: gcc-4.6
|
2019-03-10 00:41:56 +00:00
|
|
|
env: GCC46=1
|
2016-05-29 13:40:56 +00:00
|
|
|
#gcc-4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2) 4.6.4
|
2016-05-28 23:15:37 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-30 21:16:58 +00:00
|
|
|
- gcc-4.7
|
2016-05-28 23:15:37 +00:00
|
|
|
compiler: gcc-4.7
|
2019-03-10 01:16:54 +00:00
|
|
|
env: GCC47=1
|
2016-05-28 23:15:37 +00:00
|
|
|
#gcc-4.7
|
2016-05-27 22:36:16 +00:00
|
|
|
- os: linux
|
2016-05-27 22:44:48 +00:00
|
|
|
compiler: gcc
|
2019-03-10 00:41:56 +00:00
|
|
|
env: GCC48=1
|
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:
|
2016-05-28 02:46:09 +00:00
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
2016-05-30 21:16:58 +00:00
|
|
|
- gcc-4.8
|
2016-05-28 21:16:29 +00:00
|
|
|
compiler: gcc-4.8
|
2019-03-10 00:41:56 +00:00
|
|
|
env: GCC48=1
|
2016-05-28 21:16:29 +00:00
|
|
|
#gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
|
2016-05-29 01:31:33 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2017-09-28 13:13:01 +00:00
|
|
|
packages:
|
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
|
|
|
- gcc-7
|
|
|
|
compiler: gcc-7
|
2019-03-10 01:35:23 +00:00
|
|
|
env: WFLAGS="-Wno-tautological-compare -Wno-error=implicit-fallthrough -Wno-implicit-fallthrough" GCC72=1
|
2017-09-28 13:13:01 +00:00
|
|
|
#gcc-7 (Ubuntu 7.2.0-1ubuntu1~14.04) 7.2.0 20170802
|
2018-11-14 20:56:46 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
|
|
|
- gcc-8
|
|
|
|
compiler: gcc-8
|
2019-03-10 01:35:23 +00:00
|
|
|
env: WFLAGS="-Wno-tautological-compare -Wno-error=implicit-fallthrough -Wno-implicit-fallthrough -Wno-error=format-overflow" GCC81=1
|
2018-11-14 20:56:46 +00:00
|
|
|
#gcc-8 (Ubuntu 7.2.0-1ubuntu1~14.04) 8.1.0
|
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-30 21:16:58 +00:00
|
|
|
- os: linux
|
2016-05-30 21:19:32 +00:00
|
|
|
addons:
|
2016-05-30 21:16:58 +00:00
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-precise-3.5
|
|
|
|
packages:
|
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
|
|
|
- clang-3.5
|
2016-05-30 21:41:23 +00:00
|
|
|
compiler: clang-3.5
|
2016-05-30 21:52:30 +00:00
|
|
|
#Ubuntu clang version 3.5.0-4ubuntu2~trusty2 (tags/RELEASE_350/final) (based on LLVM 3.5.0)
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-precise-3.6
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
|
|
|
- clang-3.6
|
|
|
|
compiler: clang-3.6
|
2016-05-31 15:05:59 +00:00
|
|
|
#Ubuntu clang version 3.6.2-svn240577-1~exp1 (branches/release_36) (based on LLVM 3.6.2)
|
2016-05-30 21:52:30 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-precise-3.7
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
|
|
|
- clang-3.7
|
|
|
|
compiler: clang-3.7
|
2016-05-31 15:05:59 +00:00
|
|
|
#Ubuntu clang version 3.7.1-svn253571-1~exp1 (branches/release_37) (based on LLVM 3.7.1)
|
2016-05-30 21:52:30 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-precise-3.8
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
|
|
|
- clang-3.8
|
|
|
|
compiler: clang-3.8
|
2016-05-31 15:05:59 +00:00
|
|
|
#clang version 3.8.1-svn271127-1~exp1 (branches/release_38)
|
2017-09-29 21:43:20 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-precise-3.9
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- libsdl2-mixer-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libgme-dev
|
|
|
|
- p7zip-full
|
|
|
|
- clang-3.9
|
|
|
|
compiler: clang-3.9
|
|
|
|
#clang version 3.9.X
|
2017-09-29 21:57:03 +00:00
|
|
|
# - os: linux
|
|
|
|
# addons:
|
|
|
|
# apt:
|
|
|
|
# sources:
|
|
|
|
# - llvm-toolchain-precise-4.0
|
|
|
|
# - ubuntu-toolchain-r-test
|
|
|
|
# packages:
|
|
|
|
# - libsdl2-mixer-dev
|
|
|
|
# - libpng-dev
|
|
|
|
# - libgl1-mesa-dev
|
|
|
|
# - libgme-dev
|
|
|
|
# - p7zip-full
|
|
|
|
# - clang-4.0
|
|
|
|
# compiler: clang-4.0
|
|
|
|
# #clang version 4.0.X
|
|
|
|
# - os: linux
|
|
|
|
# addons:
|
|
|
|
# apt:
|
|
|
|
# sources:
|
|
|
|
# - llvm-toolchain-precise-5.0
|
|
|
|
# - ubuntu-toolchain-r-test
|
|
|
|
# packages:
|
|
|
|
# - libsdl2-mixer-dev
|
|
|
|
# - libpng-dev
|
|
|
|
# - libgl1-mesa-dev
|
|
|
|
# - libgme-dev
|
|
|
|
# - p7zip-full
|
|
|
|
# - clang-5.0
|
|
|
|
# compiler: clang-5.0
|
|
|
|
# #clang version 5.0.X
|
2016-05-28 23:08:50 +00:00
|
|
|
# - os: osx
|
2016-08-18 23:38:21 +00:00
|
|
|
# osx_image: beta-xcode6.1
|
|
|
|
# #Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: beta-xcode6.2
|
|
|
|
# compiler: gcc
|
|
|
|
# #Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
|
|
|
|
## - os: osx
|
|
|
|
## osx_image: beta-xcode6.3
|
|
|
|
## #I think xcode.6.3 VM is broken, it does not boot
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode6.4
|
|
|
|
# #Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7
|
|
|
|
# #Apple LLVM version 7.0.0 (clang-700.0.72)
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7.1
|
|
|
|
# #Apple LLVM version 7.0.0 (clang-700.1.76)
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7.2
|
|
|
|
# #Apple LLVM version 7.0.2 (clang-700.1.81)
|
2019-03-25 19:48:33 +00:00
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7.3
|
|
|
|
# #Apple LLVM version 7.3.0 (clang-703.0.31)
|
2016-05-28 05:12:24 +00:00
|
|
|
- os: osx
|
2019-03-25 19:48:33 +00:00
|
|
|
#Default: macOS 10.13 and Xcode 9.4.1
|
2016-05-31 15:26:29 +00:00
|
|
|
allow_failures:
|
2016-05-31 21:56:05 +00:00
|
|
|
- compiler: clang-3.5
|
|
|
|
- compiler: clang-3.6
|
|
|
|
- compiler: clang-3.7
|
2016-05-31 15:26:29 +00:00
|
|
|
- compiler: clang-3.8
|
2017-09-29 21:43:20 +00:00
|
|
|
- compiler: clang-3.9
|
|
|
|
- compiler: clang-4.0
|
2017-09-29 21:52:12 +00:00
|
|
|
- compiler: clang-5.0
|
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
|
2019-03-25 19:44:33 +00:00
|
|
|
homebrew:
|
2019-03-25 20:43:33 +00:00
|
|
|
taps:
|
|
|
|
- mazmazz/srb2
|
2019-03-25 19:44:33 +00:00
|
|
|
packages:
|
2019-03-25 20:59:47 +00:00
|
|
|
- sdl2_mixer
|
2019-03-25 19:44:33 +00:00
|
|
|
- game-music-emu
|
|
|
|
- p7zip
|
|
|
|
- cmake
|
2019-03-25 20:02:30 +00:00
|
|
|
update: true
|
2019-03-25 19:44:33 +00:00
|
|
|
|
2016-02-05 23:39:06 +00:00
|
|
|
|
|
|
|
before_script:
|
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-06-19 16:51:56 +00:00
|
|
|
- export CFLAGS="-Wall -W -Werror $WFLAGS"
|
2016-06-01 18:32:03 +00:00
|
|
|
- export CCACHE_COMPRESS=true
|
2016-05-28 21:44:38 +00:00
|
|
|
- cmake .. -DCMAKE_BUILD_TYPE=Release
|
2016-02-06 01:50:35 +00:00
|
|
|
|
2016-03-25 23:48:39 +00:00
|
|
|
before_install:
|
2017-09-28 17:49:57 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -O -L https://www.libsdl.org/release/SDL2-2.0.6.dmg; hdiutil attach SDL2-2.0.6.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
|