mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-02-16 09:02:11 +00:00
RXN-1 Add Travis CI config
This commit is contained in:
parent
424fa8e04c
commit
f61f1c2731
2 changed files with 27 additions and 19 deletions
24
.travis.yml
Normal file
24
.travis.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
language: c
|
||||||
|
|
||||||
|
env:
|
||||||
|
matrix:
|
||||||
|
# standard builds
|
||||||
|
- CC=gcc
|
||||||
|
- CC=clang
|
||||||
|
# extra libs
|
||||||
|
- CC=gcc USE_CODEC_VORBIS=1 USE_FREETYPE=1
|
||||||
|
- CC=clang USE_CODEC_VORBIS=1 USE_FREETYPE=1
|
||||||
|
# cross-compile using mingw
|
||||||
|
- CC= PLATFORM="mingw32" ARCH="x86"
|
||||||
|
- CC= PLATFORM="mingw32" ARCH="x86_64"
|
||||||
|
|
||||||
|
script: ./travis-ci-build.sh
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- echo "yes" | sudo apt-add-repository ppa:zoogie/sdl2-snapshots
|
||||||
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get remove -qq -y mingw32
|
||||||
|
- sudo apt-get install -q -y libgl1-mesa-dev libsdl2-dev libfreetype6-dev mingw-w64
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email: false
|
|
@ -2,29 +2,13 @@
|
||||||
|
|
||||||
failed=0;
|
failed=0;
|
||||||
|
|
||||||
# check if testing mingw
|
|
||||||
if [ "$CC" = "i686-w64-mingw32-gcc" ]; then
|
|
||||||
export PLATFORM=mingw32
|
|
||||||
export ARCH=x86
|
|
||||||
export CC=
|
|
||||||
haveExternalLibs=0
|
|
||||||
else
|
|
||||||
haveExternalLibs=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Default Build
|
# Default Build
|
||||||
(make clean release) || failed=1;
|
(make clean release) || failed=1;
|
||||||
|
|
||||||
# Test additional options
|
|
||||||
if [ $haveExternalLibs -eq 1 ]; then
|
|
||||||
(make clean release USE_CODEC_VORBIS=1 USE_FREETYPE=1) || failed=1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $failed -eq 1 ]; then
|
if [ $failed -eq 1 ]; then
|
||||||
echo "Build failure.";
|
echo "Build failure.";
|
||||||
else
|
else
|
||||||
echo "All builds successful.";
|
echo "Build successful.";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $failed;
|
exit $failed;
|
||||||
|
|
Loading…
Reference in a new issue