Skip to content

Commit

Permalink
If the env vars are not set, don't fail to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Pezmc committed Jun 2, 2014
1 parent e2088de commit 184d4b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.remotetech2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ if [ ! -f "$SRCDIR/Assembly-CSharp-firstpass.dll" ] \
|| [ ! -f "$SRCDIR/Assembly-CSharp.dll" ] \
|| [ ! -f "$SRCDIR/UnityEngine.dll" ];
then
if [ "$TRAVIS_SECURE_ENV_VARS" = "false" ]; then
# this should only happen for pull requests
echo "Unable to build as the env vars have not been set. Can't decrypt the zip."
exit 0; # can't decide if this should error
fi

if [[ ! -f dlls.zip ]]; then
echo "Need to get dependency .dll's"
wget -O dlls.zip "https://www.dropbox.com/s/kyv25p3qn166nzp/dlls.zip?dl=1"
Expand All @@ -27,3 +33,4 @@ then
fi

cd src/RemoteTech2 && xbuild

0 comments on commit 184d4b9

Please sign in to comment.