File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
project=" unity-sdk-travis"
3
3
4
- echo " Attempting to install credentials"
5
- git clone https://$CREDENTIALS_GITHUB_TOKEN @github.ibm.com/germanatt/sdk-credentials.git Travis/sdk-credentials/
4
+ if [ " ${TRAVIS_PULL_REQUEST} " = " false" ]; then
5
+ echo " Attempting to install credentials"
6
+ git clone https://$CREDENTIALS_GITHUB_TOKEN @github.ibm.com/germanatt/sdk-credentials.git Travis/sdk-credentials/
6
7
7
- if [ $? = 0 ] ; then
8
- echo " Credentials install SUCCEEDED! Exited with $? "
8
+ if [ $? = 0 ] ; then
9
+ echo " Credentials install SUCCEEDED! Exited with $? "
10
+ else
11
+ echo " Credentials install FAILED! Exited with $? "
12
+ exit 1
13
+ fi
9
14
else
10
- echo " Credentials install FAILED! Exited with $? "
11
- exit 1
15
+ echo " This is a pull request - do not attempt to install credentials"
12
16
fi
13
17
14
-
15
18
echo " Attempting to install IBM Watson SDK for Unity into the test project..."
16
19
mkdir -p Travis/UnityTestProject/Assets/Watson/
17
20
git clone -b $TRAVIS_BRANCH https://github.com/watson-developer-cloud/unity-sdk.git Travis/UnityTestProject/Assets/Watson/
You can’t perform that action at this time.
0 commit comments