#!/usr/bin/env bashecho -en "travis_fold:start:test.1\\r" && echo "Testing for $TEST_PLATFORM"${UNITY_EXECUTABLE:-xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' /opt/Unity/Editor/Unity} \-projectPath $PROJECT_PATH \-runTests \-testPlatform $TEST_PLATFORM \-testResults $(pwd)/$TEST_PLATFORM-results.xml \-logFile /dev/stdout \-batchmodeUNITY_EXIT_CODE=$?if [ $UNITY_EXIT_CODE -eq 0 ]; thenecho "Run succeeded, no failures occurred";elif [ $UNITY_EXIT_CODE -eq 2 ]; thenecho "Run succeeded, some tests failed";elif [ $UNITY_EXIT_CODE -eq 3 ]; thenecho "Run failure (other failure)";elseecho "Unexpected exit code $UNITY_EXIT_CODE";fiecho -en "travis_fold:end:test.1\\r"# Log the complete test resultsecho -en "travis_fold:start:test.2\\r" && echo "$(pwd)/$TEST_PLATFORM-results.xml"cat $(pwd)/$TEST_PLATFORM-results.xmlecho -en "travis_fold:end:test.2\\r"# Check for a Passed result in the test resultscat $(pwd)/$TEST_PLATFORM-results.xml | grep test-run | grep Passedexit $UNITY_TEST_EXIT_CODE
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。