@@ -8,36 +8,36 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
88 if [ $? = 0 ] ; then
99 echo " Creating StreamingAssets directory COMPLETED! Exited with $? "
1010 echo " Decrypting config... pwd:$( pwd) "
11- openssl aes-256-cbc -K $encrypted_984f19857b4c_key -iv $encrypted_984f19857b4c_iv -in Config.json.enc -out Travis/UnityTestProject/Assets/StreamingAssets/Config.json -d
12- if [ $? = 0 ] ; then
13- echo " Decrypting config COMPLETED! Exited with $? "
11+ openssl aes-256-cbc -K $encrypted_984f19857b4c_key -iv $encrypted_984f19857b4c_iv -in Config.json.enc -out Travis/UnityTestProject/Assets/StreamingAssets/Config.json -d
12+ if [ $? = 0 ] ; then
13+ echo " Decrypting config COMPLETED! Exited with $? "
14+ else
15+ echo " Decrypting config FAILED! Exited with $? "
16+ exit 1
17+ fi
1418 else
15- echo " Decrypting config FAILED! Exited with $? "
19+ echo " Creating StreamingAssets directory FAILED! Exited with $? "
1620 exit 1
1721 fi
18- else
19- echo " Creating StreamingAssets directory FAILED! Exited with $? "
20- exit 1
21- fi
2222
23- echo " Running UnitySDK Tests... pwd: $( pwd) "
24- /Applications/Unity/Unity.app/Contents/MacOS/Unity \
25- -batchmode \
26- -nographics \
27- -silent-crashes \
28- -logFile $( pwd) /integrationTests.log \
29- -projectPath $( pwd) /Travis/UnityTestProject \
30- -executemethod RunUnitTest.All \
31- -quit
32- if [ $? = 0 ] ; then
33- echo " UnitTest COMPLETED! Exited with $? "
34- exit 0
35- else
36- echo " UnitTest FAILED! Exited with $? "
37- echo ' Logs tests'
38- cat $( pwd) /integrationTests.log
39- exit 1
40- fi
23+ echo " Running UnitySDK Tests... pwd: $( pwd) "
24+ /Applications/Unity/Unity.app/Contents/MacOS/Unity \
25+ -batchmode \
26+ -nographics \
27+ -silent-crashes \
28+ -logFile $( pwd) /integrationTests.log \
29+ -projectPath $( pwd) /Travis/UnityTestProject \
30+ -executemethod RunUnitTest.All \
31+ -quit
32+ if [ $? = 0 ] ; then
33+ echo " UnitTest COMPLETED! Exited with $? "
34+ exit 0
35+ else
36+ echo " UnitTest FAILED! Exited with $? "
37+ echo ' Logs tests'
38+ cat $( pwd) /integrationTests.log
39+ exit 1
40+ fi
4141else
42- echo ' $TRAVIS_PULL_REQUEST is not false ($TRAVIS_PULL_REQUEST), skipping tests'
42+ echo ' $TRAVIS_PULL_REQUEST is not false ($TRAVIS_PULL_REQUEST), skipping tests'
4343fi
0 commit comments