|
| 1 | +2021.2_Build_Android_player: |
| 2 | + name: 2021.2 Build Android player |
| 3 | + agent: |
| 4 | + type: Unity::VM |
| 5 | + image: package-ci/win10:stable |
| 6 | + flavor: b1.large |
| 7 | + commands: |
| 8 | + - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple |
| 9 | + - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat |
| 10 | + - | |
| 11 | + mkdir C:\TMP |
| 12 | + cd C:\TMP |
| 13 | + unity-downloader-cli -u 2021.2 -c editor -c Android -w --fast |
| 14 | + - | |
| 15 | + set UTR_VERSION=0.12.0 |
| 16 | + utr.bat --suite=playmode --platform=Android --editor-location=C:\TMP\.Editor --testproject=testproject --player-save-path=build/players --artifacts_path=build/logs --scripting-backend=il2cpp --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-nographics --timeout=1800 --extra-editor-arg=-batchmode --reruncount=2 |
| 17 | + artifacts: |
| 18 | + players: |
| 19 | + paths: |
| 20 | + - "build/players/**" |
| 21 | + logs: |
| 22 | + paths: |
| 23 | + - "build/logs/**" |
| 24 | + |
| 25 | +2021.2_Build_iOS_player: |
| 26 | + name: 2021.2 Build iOS player |
| 27 | + agent: |
| 28 | + type: Unity::VM::osx |
| 29 | + image: mobile/macos-10.15-testing:stable |
| 30 | + flavor: b1.large |
| 31 | + commands: |
| 32 | + - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple |
| 33 | + - unity-downloader-cli -u 2021.2 -c editor -c iOS -w --fast |
| 34 | + - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr |
| 35 | + - chmod +x ./utr |
| 36 | + - export UTR_VERSION=0.12.0 |
| 37 | + - ./utr --suite=playmode --platform=iOS --editor-location=.Editor --testproject=testproject --player-save-path=build/players --artifacts_path=build/logs --build-only --testfilter=Unity.Netcode.RuntimeTests |
| 38 | + artifacts: |
| 39 | + players: |
| 40 | + paths: |
| 41 | + - "build/players/**" |
| 42 | + logs: |
| 43 | + paths: |
| 44 | + - "build/logs/**" |
| 45 | + |
| 46 | + |
| 47 | +2021.2_Run_iOS_Player_With_Tests: |
| 48 | + name: 2021.2 Run iOS player with tests |
| 49 | + agent: |
| 50 | + type: Unity::mobile::iPhone |
| 51 | + model: SE |
| 52 | + image: mobile/macos-10.15-testing:stable |
| 53 | + flavor: b1.medium |
| 54 | + # Set a dependency on the build job |
| 55 | + dependencies: |
| 56 | + - .yamato/mobile-build-and-test.yml#2021.2_Build_iOS_player |
| 57 | + commands: |
| 58 | + # Download standalone UnityTestRunner |
| 59 | + - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr |
| 60 | + # Give UTR execution permissions |
| 61 | + - chmod +x ./utr |
| 62 | + # Run the test build on the device |
| 63 | + - export UTR_VERSION=0.12.0 |
| 64 | + - ./utr --suite=playmode --platform=iOS --player-load-path=build/players --artifacts_path=build/test-results --testfilter=Unity.Netcode.RuntimeTests |
| 65 | + artifacts: |
| 66 | + logs: |
| 67 | + paths: |
| 68 | + - "build/test-results/**" |
| 69 | + |
| 70 | +2021.2_Run_Android_Player_With_Tests: |
| 71 | + name: 2021.2 Run Android player with tests |
| 72 | + agent: |
| 73 | + type: Unity::mobile::shield |
| 74 | + image: mobile/android-execution-r19:stable |
| 75 | + flavor: b1.medium |
| 76 | + # Skip repository cloning |
| 77 | + skip_checkout: true |
| 78 | + # Set a dependency on the build job |
| 79 | + dependencies: |
| 80 | + - .yamato/mobile-build-and-test.yml#2021.2_Build_Android_player |
| 81 | + commands: |
| 82 | + - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat |
| 83 | + - | |
| 84 | + set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP% |
| 85 | + start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP% |
| 86 | + start %ANDROID_SDK_ROOT%\platform-tools\adb.exe devices |
| 87 | + set UTR_VERSION=0.12.0 |
| 88 | + ./utr --suite=playmode --platform=android --player-load-path=build/players --artifacts_path=build/test-results --testfilter=Unity.Netcode.RuntimeTests |
| 89 | + # Set uploadable artifact paths |
| 90 | + artifacts: |
| 91 | + logs: |
| 92 | + paths: |
| 93 | + - "build/test-results/**" |
0 commit comments