Editor log now saves to artifacts folder

pull/38/head
Alex Evgrashin 2020-02-13 22:53:30 +03:00 committed by Webber Takken
parent 4ba71aefa9
commit 58f580c801
1 changed files with 8 additions and 2 deletions

View File

@ -77,13 +77,16 @@ if [ $EDIT_MODE = true ]; then
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
/opt/Unity/Editor/Unity \
-batchmode \
-logfile /dev/stdout \
-logFile "$FULL_ARTIFACTS_PATH/editmode.log" \
-projectPath "$UNITY_PROJECT_PATH" \
-runTests \
-testPlatform editmode \
-testResults "$FULL_ARTIFACTS_PATH/editmode-results.xml" \
$CUSTOM_PARAMETERS
# Print unity log output
cat "$FULL_ARTIFACTS_PATH/editmode.log"
# Catch exit code
EDIT_MODE_EXIT_CODE=$?
@ -112,13 +115,16 @@ if [ $PLAY_MODE = true ]; then
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
/opt/Unity/Editor/Unity \
-batchmode \
-logfile /dev/stdout \
-logFile "$FULL_ARTIFACTS_PATH/playmode.log" \
-projectPath "$UNITY_PROJECT_PATH" \
-runTests \
-testPlatform playmode \
-testResults "$FULL_ARTIFACTS_PATH/playmode-results.xml" \
$CUSTOM_PARAMETERS
# Print unity log output
cat "$FULL_ARTIFACTS_PATH/playmode.log"
# Catch exit code
PLAY_MODE_EXIT_CODE=$?