mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-01 22:06:10 -04:00
Add travis config
This adds a travis config to build everyting on 12.04. Because 12.04 is quite old, there are a certain number of hoops that need to be jumped through in order to get things working. As a result, the build script is more complex than I'd like.
This commit is contained in:
@ -3,6 +3,8 @@
|
||||
REBUILD=''
|
||||
NVIDIA=''
|
||||
NATIVE=''
|
||||
CONCURRENCY='-j9'
|
||||
QMAKE=${QMAKE:-qmake}
|
||||
|
||||
while test $# -gt 0
|
||||
do
|
||||
@ -13,6 +15,8 @@ do
|
||||
;;
|
||||
--native) NATIVE="CONFIG += native"
|
||||
;;
|
||||
--travis) CONCURRENCY="-j1"
|
||||
;;
|
||||
--*) echo "bad option $1"; exit 1
|
||||
;;
|
||||
*) echo "unrecognised argument $1"; exit 1
|
||||
@ -29,8 +33,8 @@ do
|
||||
if [ "x1" = "x$REBUILD" ]; then
|
||||
make clean
|
||||
fi
|
||||
qmake "$NVIDIA" "$NATIVE"
|
||||
make -j9
|
||||
$QMAKE "$NVIDIA" "$NATIVE"
|
||||
make $CONCURRENCY
|
||||
if [ "x$?" != "x0" ]; then
|
||||
echo "Build failed! Check output for errors."
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user