mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Tidy up travis scripts to only set the active build type variables
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user