Skip to content

build(credentials): Do not attempt to install credentials if this is a PR #521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions Travis/installSDK.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
#! /bin/sh
project="unity-sdk-travis"

echo "Attempting to install credentials"
git clone https://[email protected]/germanatt/sdk-credentials.git Travis/sdk-credentials/
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
echo "Attempting to install credentials"
git clone https://[email protected]/germanatt/sdk-credentials.git Travis/sdk-credentials/

if [ $? = 0 ] ; then
echo "Credentials install SUCCEEDED! Exited with $?"
if [ $? = 0 ] ; then
echo "Credentials install SUCCEEDED! Exited with $?"
else
echo "Credentials install FAILED! Exited with $?"
exit 1
fi
else
echo "Credentials install FAILED! Exited with $?"
exit 1
echo "This is a pull request - do not attempt to install credentials"
fi


echo "Attempting to install IBM Watson SDK for Unity into the test project..."
mkdir -p Travis/UnityTestProject/Assets/Watson/
git clone -b $TRAVIS_BRANCH https://github.com/watson-developer-cloud/unity-sdk.git Travis/UnityTestProject/Assets/Watson/
Expand Down