Skip to content

Commit ed46e35

Browse files
committed
added a slash to createProject path, edit travis log messages
1 parent 37b5baf commit ed46e35

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Travis/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project="unity-sdk-travis"
33

44
ERROR_CODE=0
55

6-
echo "Attempting to build $project for Windows. pwd: $(pwd)"
6+
echo "Attempting to build $project for Windows..."
77
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
88
-batchmode \
99
-nographics \
@@ -22,7 +22,7 @@ fi
2222
echo 'Logs from build'
2323
cat $(pwd)/Travis/UnityTestProject/windowsBuild.log
2424

25-
echo "Attempting to build $project for OS X. pwd: $(pwd)"
25+
echo "Attempting to build $project for OS X..."
2626
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
2727
-batchmode \
2828
-nographics \

Travis/createProject.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#! /bin/sh
22
project="unity-sdk-travis"
33

4-
echo "Creating directory for empty project Travis/UnityTestProject. pwd:$(pwd)"
4+
echo "Attempting to create directory for empty project Travis/UnityTestProject..."
55
mkdir -p Travis/UnityTestProject
66

7-
echo "Creating an empty project into Travis/UnityTestProject. pwd:$(pwd)"
7+
echo "Attempting to create an empty project into Travis/UnityTestProject...."
88
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
99
-batchmode \
1010
-nographics \
1111
-silent-crashes \
1212
-logFile $(pwd)/createProject.log \
13-
-createProject $(pwd) Travis/UnityTestProject \
13+
-createProject $(pwd)/Travis/UnityTestProject \
1414
-quit
1515
if [ $? = 0 ] ; then
1616
echo "Project creation COMPLETED! Exited with $?"

Travis/installSDK.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#! /bin/sh
22
project="unity-sdk-travis"
33

4-
echo "Installing Watson Developer Cloud Unity SDK into the test project. pwd: $(pwd)"
4+
echo "Attempting to install Watson Developer Cloud Unity SDK into the test project..."
55
mkdir -p Travis/UnityTestProject/Assets/Watson/
66
git clone https://github.com/watson-developer-cloud/unity-sdk.git Travis/UnityTestProject/Assets/Watson/
77
if [ $? = 0 ] ; then
88
echo "WDC Unity SDK install SUCCEEDED! Exited with $?"
9-
echo "Removing TravisBuild from Travis directory"
9+
echo "Attempting to remove TravisBuild from Travis directory..."
1010
rm Travis/TravisBuild.cs
1111
if [ $? = 0 ] ; then
1212
echo "Removing travis build script SUCCEEDED! Exited with $?"
@@ -15,7 +15,7 @@ if [ $? = 0 ] ; then
1515
exit 1
1616
fi
1717

18-
echo "Moving Travis build script"
18+
echo "Attempting to move Travis build script..."
1919
mkdir -p Travis/UnityTestProject/Assets/Scripts/Editor/
2020
mv Travis/UnityTestProject/Assets/Watson/Travis/TravisBuild.cs Travis/UnityTestProject/Assets/Scripts/Editor/TravisBuild.cs
2121
if [ $? = 0 ] ; then

Travis/runTests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ project="unity-sdk-travis"
33

44
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
55
echo '$TRAVIS_PULL_REQUEST is false, running tests'
6-
echo "Creating Streaming Assets directory... pwd:$(pwd)"
6+
echo "Attempting to create Streaming Assets directory..."
77
mkdir -p Travis/UnityTestProject/Assets/StreamingAssets/
88
if [ $? = 0 ] ; then
99
echo "Creating StreamingAssets directory COMPLETED! Exited with $?"
10-
echo "Decrypting config... pwd:$(pwd)"
10+
echo "Attempting to decrypt config..."
1111
openssl aes-256-cbc -K $encrypted_984f19857b4c_key -iv $encrypted_984f19857b4c_iv -in Config.json.enc -out Travis/UnityTestProject/Assets/StreamingAssets/Config.json -d
1212
if [ $? = 0 ] ; then
1313
echo "Decrypting config COMPLETED! Exited with $?"
@@ -20,7 +20,7 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
2020
exit 1
2121
fi
2222

23-
echo "Running UnitySDK Tests... pwd: $(pwd)"
23+
echo "Attempting to run UnitySDK integration Tests..."
2424
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
2525
-batchmode \
2626
-nographics \

0 commit comments

Comments
 (0)