Tidy up travis scripts to only set the active build type variables

This commit is contained in:
baldurk
2017-05-09 16:35:22 +01:00
parent dd3f3aa91b
commit c18b9147aa
3 changed files with 113 additions and 13 deletions
+48
View File
@@ -0,0 +1,48 @@
if [[ "$DOCS_BUILD" == "1" ]]; then
echo "== Compiling documentation build.";
. ./scripts/travis/docs_compile.sh;
else
echo "== Compiling code build.";
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ "$LINUX_BUILD" == "1" ]]; then
. ./scripts/travis/linux_compile.sh;
elif [[ "$ANDROID_BUILD" == "1" ]]; then
. ./scripts/travis/android_compile.sh;
else
echo "Unknown configuration building on linux - not targetting linux or android.";
exit 1;
fi
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$APPLE_BUILD" == "1" ]]; then
. ./scripts/travis/osx_compile.sh
else
echo "Unknown configuration building on OSX - not targetting OSX.";
exit 1;
fi
else
echo "Unknown travis OS: $TRAVIS_OS_NAME.";
exit 1;
fi
fi
+48
View File
@@ -0,0 +1,48 @@
if [[ "$DOCS_BUILD" == "1" ]]; then
echo "== Setting up documentation build.";
. ./scripts/travis/docs_setup.sh;
else
echo "== Setting up code build.";
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ "$LINUX_BUILD" == "1" ]]; then
. ./scripts/travis/linux_setup.sh;
elif [[ "$ANDROID_BUILD" == "1" ]]; then
. ./scripts/travis/android_setup.sh;
else
echo "Unknown configuration building on linux - not targetting linux or android.";
exit 1;
fi
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$APPLE_BUILD" == "1" ]]; then
. ./scripts/travis/osx_setup.sh
else
echo "Unknown configuration building on OSX - not targetting OSX.";
exit 1;
fi
else
echo "Unknown travis OS: $TRAVIS_OS_NAME.";
exit 1;
fi
fi