2013-03-06 22:57:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
failed=0;
|
|
|
|
|
|
|
|
# Default Build
|
2013-03-07 01:04:30 +00:00
|
|
|
(make clean release) || failed=1;
|
2013-03-06 22:57:02 +00:00
|
|
|
|
|
|
|
# Test additional options
|
2013-03-07 01:04:30 +00:00
|
|
|
(make clean release USE_CODEC_VORBIS=1 USE_FREETYPE=1 CFLAGS=-DRAVENMD4) || failed=1;
|
2013-03-06 22:57:02 +00:00
|
|
|
|
2013-03-07 00:00:03 +00:00
|
|
|
# Test mingw
|
|
|
|
if [ "$CC" = "clang" ]; then
|
|
|
|
# skip mingw if travis-ci clang build
|
|
|
|
echo "Skipping mingw build because there is no mingw clang compiler available.";
|
|
|
|
else
|
|
|
|
# clear CC so cross-make-mingw script will set it.
|
|
|
|
export CC=
|
2013-03-07 01:04:30 +00:00
|
|
|
(exec ./cross-make-mingw.sh clean release) || failed=1;
|
2013-03-06 23:24:59 +00:00
|
|
|
fi
|
2013-03-06 22:57:02 +00:00
|
|
|
|
|
|
|
if [ $failed -eq 1 ]; then
|
2013-03-07 00:00:03 +00:00
|
|
|
echo "Build failure.";
|
2013-03-06 22:57:02 +00:00
|
|
|
else
|
2013-03-07 00:00:03 +00:00
|
|
|
echo "All builds successful.";
|
2013-03-06 22:57:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit $failed;
|
|
|
|
|