mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-01-29 04:39:07 +08:00
Try another 4 strategies
This commit is contained in:
@@ -26,17 +26,28 @@ if [[ -n "$UNITY_LICENSE" ]]; then
|
||||
# Activate container
|
||||
# See: https://docs.unity3d.com/Manual/CommandLineArguments.html
|
||||
|
||||
echo "Strategy 1 - Run without activation or test command"
|
||||
echo "Strategy 1 - No activation, fast command"
|
||||
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
|
||||
/opt/Unity/Editor/Unity \
|
||||
-batchmode \
|
||||
-nographics \
|
||||
-logFile /dev/stdout \
|
||||
-quit \
|
||||
-createProject licenseTestProject
|
||||
UNITY_EXIT_CODE=$?
|
||||
|
||||
echo "Strategy 2 - No activation, rely on license file"
|
||||
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
|
||||
/opt/Unity/Editor/Unity \
|
||||
-batchmode \
|
||||
-nographics \
|
||||
-logFile /dev/stdout \
|
||||
-quit \
|
||||
-runTests
|
||||
UNITY_EXIT_CODE=$?
|
||||
echo "Exited with code $UNITY_EXIT_CODE \n\n"
|
||||
|
||||
echo "Strategy 2 - Run activation + test command"
|
||||
echo "Strategy 3 - Run activation, exit 0 then another command"
|
||||
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
|
||||
/opt/Unity/Editor/Unity \
|
||||
-batchmode \
|
||||
@@ -47,17 +58,16 @@ if [[ -n "$UNITY_LICENSE" ]]; then
|
||||
-runTests
|
||||
UNITY_EXIT_CODE=$?
|
||||
echo "Exited with code $UNITY_EXIT_CODE \n\n"
|
||||
|
||||
echo "Strategy 3 - No activation, rely on license file"
|
||||
echo "running that other command to verify license works"
|
||||
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
|
||||
/opt/Unity/Editor/Unity \
|
||||
-batchmode \
|
||||
-nographics \
|
||||
-logFile /dev/stdout \
|
||||
-quit \
|
||||
-runTests
|
||||
UNITY_EXIT_CODE=$?
|
||||
echo "Exited with code $UNITY_EXIT_CODE \n\n"
|
||||
-createProject licenseTestProject
|
||||
|
||||
rm -rf licenseTestProject
|
||||
|
||||
# Display information about the result
|
||||
UNITY_EXIT_CODE=$?
|
||||
|
||||
Reference in New Issue
Block a user