Skip to content

Commit 803183b

Browse files
committed
build: Corrected installSDK script
1 parent 9fc29bc commit 803183b

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

Travis/installSDK.sh

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
77

88
if [ $? = 0 ] ; then
99
echo "Credentials install SUCCEEDED! Exited with $?"
10+
export IBM_CREDENTIALS_FILE=$(pwd)/Travis/sdk-credentials/ibm-credentials.env
1011
else
1112
echo "Credentials install FAILED! Exited with $?"
1213
exit 1
@@ -22,33 +23,14 @@ git clone -b $TRAVIS_BRANCH https://github.com/watson-developer-cloud/unity-sdk.
2223
if [ $? = 0 ] ; then
2324
echo "WDC Unity SDK install SUCCEEDED! Exited with $?"
2425

25-
echo "Attempting to remove TravisIntegrationTests from Travis directory..."
26-
rm Travis/TravisIntegrationTests.cs
27-
if [ $? = 0 ] ; then
28-
echo "Removing travis build script SUCCEEDED! Exited with $?"
29-
else
30-
echo "Removing travis build script FAILED! Exited with $?"
31-
exit 1
32-
fi
33-
3426
echo "Attempting to create Travis/UnityTestProject/Assets/Scripts/Editor/"
3527
mkdir -p Travis/UnityTestProject/Assets/Scripts/Editor/
3628
if [ $? = 0 ] ; then
3729
echo "Creating Travis/UnityTestProject/Assets/Scripts/Editor/ SUCCEEDED! Exited with $?"
38-
39-
echo "Attempting to move integration tests script..."
40-
mv Travis/UnityTestProject/Assets/Watson/Travis/TravisIntegrationTests.cs Travis/UnityTestProject/Assets/Scripts/Editor/TravisIntegrationTests.cs
41-
if [ $? = 0 ] ; then
42-
echo "Moving travis integration tests script SUCCEEDED! Exited with $?"
43-
exit 0
44-
else
45-
echo "Moving travis integration tests script FAILED! Exited with $?"
46-
exit 1
47-
fi
4830
else
4931
echo "Creating Travis/UnityTestProject/Assets/Scripts/Editor/ FAILED! EXITED WITH $?"
5032
fi
5133
else
5234
echo "WDC Unity SDK install FAILED! Exited with $?"
5335
exit 1
54-
fi
36+
fi

0 commit comments

Comments
 (0)