Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
47 changes: 29 additions & 18 deletions .yamato/mobile-build-and-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ Build_Player_With_Tests_iOS_{{ project.name }}_{{ editor }}:
name: build {{ project.name }} - {{ editor }} on iOS
agent:
type: Unity::VM::osx
image: package-ci/macos-12:v4
image: package-ci/macos-13:v4
flavor: b1.large

commands:
- pip install unity-downloader-cli==1.2.0 --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
- unity-downloader-cli -c Editor -c iOS -u {{ editor }} --fast --wait
- echo "CONFIGURATION = Release" >> ~/XcodeBuildConfig.xcconfig
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
- chmod +x ./utr
- ./utr --suite=playmode --platform=iOS --editor-location=.Editor --testproject={{ project.path }} --player-save-path=build/players --artifacts_path=build/logs --build-only --testfilter=Unity.BossRoom.Tests.Runtime

variables:
UNITY_TESTS_XCODEBUILD_TIMEOUT: 60
XCODE_XCCONFIG_FILE: ~/XcodeBuildConfig.xcconfig
artifacts:
players:
paths:
Expand All @@ -37,18 +40,19 @@ Build_Player_With_Tests_Android_{{ project.name }}_{{ editor }}:
type: Unity::VM
# Any generic image can be used, no need to have Android tools in the image for building
# All Android tools will be downloaded by unity-downloader-cli
image: mobile/android-execution-base:stable
flavor: b1.xlarge
image: mobile/android-execution-base:v2.1774381
flavor: b1.large

commands:
# Download unity-downloader-cli
- pip install unity-downloader-cli==1.2.0 --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools/utr-standalone/utr.bat --output utr.bat
- python .yamato/disable-burst-if-requested.py --project-path {{ project.path }} --platform Android
- gsudo choco source add -n Unity -s https://artifactory-slo.bf.unity3d.com/artifactory/api/nuget/unity-choco-local --priority=1
- gsudo choco install -y unity-config unity-downloader-cli
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output ./utr.bat
- unity-config project set registry candidates --project-path {{ project.path }}
- unity-downloader-cli -c Editor -c Android -u {{ editor }} --fast --wait
- python .yamato/disable-burst-if-requested.py --project-path {{ project.path }} --platform Android
# Build player(s)
- set UTR_VERSION=0.12.0
- ./utr.bat --suite=playmode --platform=Android --editor-location=.Editor --testproject={{ project.path }} --player-save-path=build/players --artifacts_path=build/logs --scripting-backend=mono --build-only --testfilter=Unity.BossRoom.Tests.Runtime
- ./utr.bat --suite=playmode --platform=Android --editor-location=.Editor --testproject={{ project.path }} --player-save-path=build/players --artifacts_path=build/logs --scripting-backend=il2cpp --build-only --testfilter=Unity.BossRoom.Tests.Runtime
artifacts:
players:
paths:
Expand All @@ -70,7 +74,7 @@ mobile_test_ios_{{ project.name }}_{{ editor }}:
name: {{ project.name }} mobile project tests - {{ editor }} on iOS
agent:
type: Unity::mobile::iPhone
image: package-ci/macos-12:v4
image: package-ci/macos-13:v4
flavor: b1.medium

# Skip repository cloning
Expand Down Expand Up @@ -103,7 +107,7 @@ mobile_test_android_{{ project.name }}_{{ editor }}:
name: {{ project.name }} mobile project tests - {{ editor }} on Android
agent:
type: Unity::mobile::shield
image: mobile/android-execution-base:stable
image: package-ci/ubuntu-22.04:v4
flavor: b1.medium

# Skip repository cloning
Expand All @@ -113,13 +117,20 @@ mobile_test_android_{{ project.name }}_{{ editor }}:
- .yamato/mobile-build-and-run.yml#Build_Player_With_Tests_Android_{{ project.name }}_{{ editor }}
commands:
# Download standalone UnityTestRunner
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools/utr-standalone/utr.bat --output utr.bat
- |
set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe devices
set UTR_VERSION=0.12.0
./utr --artifacts_path=build/test-results --testproject={{ project.path }} --editor-location=.Editor --reruncount=2 --suite=playmode --platform=android --player-load-path=build/players --testfilter=Unity.BossRoom.Tests.Runtime
- unity-downloader-cli --fast --wait -u {{ editor }} -c editor -c Android
- >
ANDROID_DEVICE_CONNECTION=$BOKKEN_DEVICE_IP
ANDROID_SDK_ROOT=$PWD/.Editor/Data/PlaybackEngines/AndroidPlayer/SDK
UnifiedTestRunner
--artifacts-path=build/test-results
--editor-location=.Editor
--suite=playmode
--testproject={{ project.path }}
--platform=Android
--player-load-path=build/players
--testfilter=Unity.BossRoom.Tests.Runtime
--reruncount=2
--player-connection-ip=$BOKKEN_HOST_IP
# Set uploadable artifact paths
artifacts:
logs:
Expand Down
2 changes: 1 addition & 1 deletion .yamato/project-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pack_{{ project.name }}:
name: Pack {{ project.name }}
agent:
type: Unity::VM
image: package-ci/ubuntu:stable
image: package-ci/ubuntu-22.04:v4
flavor: b1.small
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
Expand Down
2 changes: 1 addition & 1 deletion .yamato/project-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ standards_{{ projects.first.name }}:
name: Standards Check {{ projects.first.name }}
agent:
type: Unity::VM
image: desktop/logging-testing-linux:v0.1.2-926285
image: package-ci/ubuntu-22.04:v4
flavor: b1.large
commands:
- dotnet --version
Expand Down
6 changes: 3 additions & 3 deletions .yamato/project.metafile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
test_platforms:
- name: win
type: Unity::VM
image: package-ci/win10:v4
image: package-ci/win10:v4.36.0
flavor: b1.large
editorpath: .Editor\Unity.exe
utr: .\utr.bat
Expand All @@ -14,7 +14,7 @@ test_platforms:
utr: ./utr
- name: ubuntu
type: Unity::VM
image: package-ci/ubuntu-18.04:v4
image: package-ci/ubuntu-22.04:v4
flavor: b1.large
editorpath: .Editor/Unity
utr: ./utr
Expand All @@ -30,4 +30,4 @@ projects:
- name: com.unity.multiplayer.samples.coop
path: Packages/com.unity.multiplayer.samples.coop
test_editors:
- 2022.3
- 6000.0.44
2 changes: 1 addition & 1 deletion Assets/Scripts/Editor/Readme.meta → Assets/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Editor/Tutorials.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Editor/Tutorials/DiscordIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
123 changes: 123 additions & 0 deletions Assets/Editor/Tutorials/DiscordIcon.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Editor/Tutorials/GithubIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading