Skip to content

Commit 2da5a98

Browse files
authored
chore: Upgrading unity-downloader-cli (#3048)
* upgrading unity-downloader-cli * upgrading unity-downloader for all jobs * upgrading to use pip3 * fixing permission issue * removing the version check
1 parent 505261c commit 2da5a98

7 files changed

+21
-2
lines changed

.yamato/code-coverage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ code_coverage_win_{{ project.name }}_{{ validation_editor }}:
99
image: package-ci/win10:v4
1010
flavor: b1.large
1111
commands:
12-
- pip install unity-downloader-cli --upgrade --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
12+
- pip config set global.index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
13+
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
14+
- pip install unity-downloader-cli --upgrade
1315
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
1416
- unity-downloader-cli -u {{ validation_editor }} -c editor --wait --fast
1517
- upm-ci package test -u .Editor --package-path com.unity.netcode.gameobjects --enable-code-coverage --code-coverage-options 'enableCyclomaticComplexity;generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+Unity.Netcode.Editor,+Unity.Netcode.Runtime,+Unity.Netcode.Components'

.yamato/mobile-build-and-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ build_{{ project.name }}_tests_{{ editor }}_android:
1111
image: desktop/android-execution-r19:v0.1.1-860408
1212
flavor: b1.xlarge
1313
commands:
14+
- pip config set global.index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1415
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
16+
- pip install unity-downloader-cli --upgrade
1517
- curl -s https://artifactory-slo.bf.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
1618
- python .yamato/disable-burst-if-requested.py --project-path testproject --platform Android
1719
- unity-downloader-cli -u {{ editor }} -c editor -c Android -w --fast
@@ -49,7 +51,9 @@ build_{{ project.name }}_tests_{{ editor }}_iOS:
4951
image: mobile/ios-macos-11:stable
5052
flavor: b1.large
5153
commands:
54+
- pip config set global.index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
5255
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
56+
- pip install unity-downloader-cli --upgrade
5357
- unity-downloader-cli -u {{ editor }} -c editor -c iOS -w --fast
5458
- curl -s https://artifactory-slo.bf.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
5559
- chmod +x ./utr

.yamato/multiprocess-project-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ singlenode_multiprocess_test_testproject_{{ editor }}_{{ platform.name }}:
1212
image: {{ platform.image }}
1313
flavor: {{ platform.flavor}}
1414
commands:
15+
- pip config set global.index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1516
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
17+
- pip install unity-downloader-cli --upgrade
1618
{% if editor != "trunk" %}
1719
- unity-downloader-cli -u {{ editor }} -c editor -w --fast
1820
- curl -s https://artifactory-slo.bf.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr{% if platform.name == "win" %}.bat --output utr.bat{% endif %}{% if platform.name != "win" %} --output utr && chmod +x ./utr{% endif %}

.yamato/project-standards.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ standards_{{ projects.first.name }}:
99
commands:
1010
- dotnet --version
1111
- dotnet format --version
12-
- pip install unity-downloader-cli --upgrade --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
12+
- sudo add-apt-repository -y ppa:deadsnakes/ppa
13+
- sudo apt update
14+
- sudo apt install -y python3.9
15+
- pip3 config set global.index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
16+
- pip3 install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
17+
- pip3 install unity-downloader-cli --upgrade
1318
- unity-downloader-cli -u {{ projects.first.test_editors.first }} -c editor --wait --fast
1419
- .Editor/Unity -batchmode -nographics -logFile - -executeMethod Packages.Rider.Editor.RiderScriptEditor.SyncSolution -projectPath {{ projects.first.path }} -quit
1520
- dotnet run --project dotnet-tools/netcode.standards -- --project={{ projects.first.path }} --check

.yamato/project-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ test_{{ project.name }}_{{ editor }}_{{ platform.name }}:
1515
flavor: {{ platform.flavor}}
1616
commands:
1717
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
18+
- pip config set global.index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1819
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
20+
- pip install unity-downloader-cli --upgrade
1921
- unity-downloader-cli -u {{ editor }} -c editor -w --fast
2022
- {% if platform.name == "ubuntu" %}DISPLAY=:0 && {% endif %}upm-ci project test -u {{ editor }} --project-path {{ project.path }} --type project-tests
2123
artifacts:

.yamato/standalone-project-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ standalone_tests_{{ project.name }}_{{ backend }}_{{ editor }}_{{ platform.name
1515
flavor: {{ platform.flavor}}
1616
commands:
1717
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
18+
- pip config set global.index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1819
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
20+
- pip install unity-downloader-cli --upgrade
1921
- curl -s https://artifactory-slo.bf.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr{% if platform.name == "win" %}.bat{% endif %} --output utr{% if platform.name == "win" %}.bat{% endif %}
2022
{% if platform.name != "win" %}
2123
- chmod +x ./utr

.yamato/webgl-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ build_{{ project.name }}_tests_{{ editor }}_webgl:
1111
image: dots-ci/windows10:v1.493-auto
1212
flavor: b1.xlarge
1313
commands:
14+
- pip config set global.index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1415
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
16+
- pip install unity-downloader-cli --upgrade
1517
- curl -s https://artifactory-slo.bf.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
1618
- python .yamato/disable-burst-if-requested.py --project-path testproject --platform WebGL
1719
- unity-downloader-cli -u {{ editor }} -c editor -c webgl -c il2cpp -w --fast

0 commit comments

Comments
 (0)