|
1 | | -2021.2_Build_Android_player: |
2 | | - name: 2021.2 Build Android player |
| 1 | +{% metadata_file .yamato/project.metafile %} |
| 2 | +--- |
| 3 | + |
| 4 | +{% for project in projects -%} |
| 5 | +{% if project.name == "testproject" -%} |
| 6 | +{% for editor in project.test_editors -%} |
| 7 | +build_{{ project.name }}_tests_{{ editor }}_android: |
| 8 | + name: Build {{ project.name }} Tests - {{ editor }} - Android |
3 | 9 | agent: |
4 | 10 | type: Unity::VM |
5 | 11 | image: desktop/android-execution-r19:v0.1.1-860408 |
|
8 | 14 | - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple |
9 | 15 | - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat |
10 | 16 | - python .yamato/disable-burst-if-requested.py --project-path testproject --platform Android |
11 | | - - unity-downloader-cli -u 2021.2 -c editor -c Android -w --fast |
| 17 | + - unity-downloader-cli -u {{ editor }} -c editor -c Android -w --fast |
12 | 18 | - | |
13 | 19 | set UTR_VERSION=0.12.0 |
14 | | - utr.bat --artifacts_path=artifacts --timeout=1800 --testproject=testproject --editor-location=.Editor --suite=playmode --platform=android --build-only --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --testfilter=Unity.Netcode.RuntimeTests |
| 20 | + utr.bat --artifacts_path=artifacts --timeout=1800 --testproject={{ project.name }} --editor-location=.Editor --suite=playmode --platform=android --build-only --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --testfilter=Unity.Netcode.RuntimeTests |
15 | 21 | artifacts: |
16 | 22 | logs: |
17 | 23 | paths: |
|
28 | 34 | variables: |
29 | 35 | CI: true |
30 | 36 | ENABLE_BURST_COMPILATION: False |
| 37 | +{% endfor -%} |
| 38 | +{% endif -%} |
| 39 | +{% endfor -%} |
| 40 | + |
31 | 41 |
|
32 | | -2021.2_Build_iOS_player: |
33 | | - name: 2021.2 Build iOS player |
| 42 | +{% for project in projects -%} |
| 43 | +{% if project.name == "testproject" -%} |
| 44 | +{% for editor in project.test_editors -%} |
| 45 | +build_{{ project.name }}_tests_{{ editor }}_iOS: |
| 46 | + name: Build {{ project.name }} Tests - {{ editor }} - iOS |
34 | 47 | agent: |
35 | 48 | type: Unity::VM::osx |
36 | | - image: mobile/macos-10.15-testing:stable |
| 49 | + image: mobile/ios-macos-11:stable |
37 | 50 | flavor: b1.large |
38 | 51 | commands: |
39 | 52 | - pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple |
40 | | - - unity-downloader-cli -u 2021.2 -c editor -c iOS -w --fast |
| 53 | + - unity-downloader-cli -u {{ editor }} -c editor -c iOS -w --fast |
41 | 54 | - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr |
42 | 55 | - chmod +x ./utr |
43 | 56 | - export UTR_VERSION=0.12.0 |
44 | | - - ./utr --artifacts_path=artifacts --timeout=1800 --testproject=testproject --editor-location=.Editor --suite=playmode --platform=iOS --build-only --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --testfilter=Unity.Netcode.RuntimeTests |
| 57 | + - ./utr --artifacts_path=artifacts --timeout=1800 --testproject={{ project.name }} --editor-location=.Editor --suite=playmode --platform=iOS --build-only --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --testfilter=Unity.Netcode.RuntimeTests |
45 | 58 | artifacts: |
46 | 59 | logs: |
47 | 60 | paths: |
|
55 | 68 | - build/test-results/** |
56 | 69 | - artifacts/** |
57 | 70 | - build/players/** |
| 71 | +{% endfor -%} |
| 72 | +{% endif -%} |
| 73 | +{% endfor -%} |
58 | 74 |
|
59 | 75 |
|
60 | | -2021.2_Run_iOS_Player_With_Tests: |
61 | | - name: 2021.2 Run iOS player with tests |
| 76 | +{% for project in projects -%} |
| 77 | +{% if project.name == "testproject" -%} |
| 78 | +{% for editor in project.test_editors -%} |
| 79 | +run_{{ project.name }}_tests_{{ editor }}_iOS: |
| 80 | + name: Run {{ project.name }} Tests - {{ editor }} - iOS |
62 | 81 | agent: |
63 | 82 | type: Unity::mobile::iPhone |
64 | 83 | model: SE |
65 | | - image: mobile/macos-10.15-testing:stable |
| 84 | + image: mobile/ios-macos-11:stable |
66 | 85 | flavor: b1.medium |
67 | 86 | # Set a dependency on the build job |
68 | 87 | dependencies: |
69 | | - - .yamato/mobile-build-and-test.yml#2021.2_Build_iOS_player |
| 88 | + - .yamato/mobile-build-and-test.yml#build_{{ project.name }}_tests_{{ editor }}_iOS |
70 | 89 | commands: |
71 | 90 | # Download standalone UnityTestRunner |
72 | 91 | - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr |
73 | 92 | # Give UTR execution permissions |
74 | 93 | - chmod +x ./utr |
75 | 94 | # Run the test build on the device |
76 | 95 | - export UTR_VERSION=0.12.0 |
77 | | - - ./utr -artifacts_path=artifacts --testproject=testproject --editor-location=.Editor --reruncount=2 --suite=playmode --platform=iOS --player-load-path=build/players --testfilter=Unity.Netcode.RuntimeTests |
| 96 | + - ./utr -artifacts_path=artifacts --testproject={{ project.name }} --editor-location=.Editor --reruncount=2 --suite=playmode --platform=iOS --player-load-path=build/players --testfilter=Unity.Netcode.RuntimeTests |
78 | 97 | artifacts: |
79 | 98 | logs: |
80 | 99 | paths: |
|
88 | 107 | - build/test-results/** |
89 | 108 | - artifacts/** |
90 | 109 | - build/players/** |
| 110 | +{% endfor -%} |
| 111 | +{% endif -%} |
| 112 | +{% endfor -%} |
| 113 | + |
91 | 114 |
|
92 | | -2021.2_Run_Android_Player_With_Tests: |
93 | | - name: 2021.2 Run Android player with tests |
| 115 | +{% for project in projects -%} |
| 116 | +{% if project.name == "testproject" -%} |
| 117 | +{% for editor in project.test_editors -%} |
| 118 | +run_{{ project.name }}_tests_{{ editor }}_android: |
| 119 | + name: Run {{ project.name }} Tests - {{ editor }} - Android |
94 | 120 | agent: |
95 | 121 | type: Unity::mobile::shield |
96 | 122 | image: mobile/android-execution-r19:stable |
|
99 | 125 | skip_checkout: true |
100 | 126 | # Set a dependency on the build job |
101 | 127 | dependencies: |
102 | | - - .yamato/mobile-build-and-test.yml#2021.2_Build_Android_player |
| 128 | + - .yamato/mobile-build-and-test.yml#build_{{ project.name }}_tests_{{ editor }}_android |
103 | 129 | commands: |
104 | 130 | - curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat |
105 | 131 | - | |
106 | 132 | set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP% |
107 | 133 | start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP% |
108 | 134 | start %ANDROID_SDK_ROOT%\platform-tools\adb.exe devices |
109 | 135 | set UTR_VERSION=0.12.0 |
110 | | - ./utr --artifacts_path=artifacts --testproject=testproject --editor-location=.Editor --reruncount=2 --suite=playmode --platform=android --player-connection-ip=%BOKKEN_HOST_IP% --player-load-path=build/players --testfilter=Unity.Netcode.RuntimeTests |
| 136 | + ./utr --artifacts_path=artifacts --testproject={{ project.name }} --editor-location=.Editor --reruncount=2 --suite=playmode --platform=android --player-connection-ip=%BOKKEN_HOST_IP% --player-load-path=build/players --testfilter=Unity.Netcode.RuntimeTests |
111 | 137 | # Set uploadable artifact paths |
112 | 138 | artifacts: |
113 | 139 | logs: |
|
122 | 148 | - build/test-results/** |
123 | 149 | - artifacts/** |
124 | 150 | - build/players/** |
| 151 | +{% endfor -%} |
| 152 | +{% endif -%} |
| 153 | +{% endfor -%} |
0 commit comments