|
|
|
|
|
|
enableCodeCoverage: !!bool false |
|
|
|
# We want some scene tests to run in the DevProject, but packages there only support 2019+ |
|
|
|
testProject: Project |
|
|
|
enableNoDefaultPackages: !!bool false |
|
|
|
enableNoDefaultPackages: !!bool true |
|
|
|
enableNoDefaultPackages: !!bool true |
|
|
|
enableNoDefaultPackages: !!bool true |
|
|
|
|
|
|
|
trunk_editor: |
|
|
|
- version: trunk |
|
|
|
|
|
|
{% else %} |
|
|
|
{% assign coverageOptions = "" %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% if editor.enableNoDefaultPackages %} |
|
|
|
{% assign noDefaultPackagesOptions = "--extra-create-project-arg='-upmNoDefaultPackages'" %} |
|
|
|
{% else %} |
|
|
|
{% assign noDefaultPackagesOptions = "" %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
test_{{ package.name }}_{{ platform.name }}_{{ editor.version }}: |
|
|
|
name : {{ package.name }} test {{ editor.version }} on {{ platform.name }} |
|
|
|
agent: |
|
|
|
|
|
|
commands: |
|
|
|
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
|
|
|
- upm-ci project test -u {{ editor.version }} --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} --extra-utr-arg "reruncount=2" |
|
|
|
- upm-ci project test -u {{ editor.version }} --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} {{ noDefaultPackagesOptions }} --extra-utr-arg "reruncount=2" |
|
|
|
{% if editor.enableCodeCoverage %} |
|
|
|
- python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ package.minCoveragePct }} |
|
|
|
{% endif %} |
|
|
|
|
|
|
- python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade |
|
|
|
- unity-downloader-cli -u trunk -c editor --wait --fast |
|
|
|
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm |
|
|
|
- upm-ci project test -u {{ editor.version }} --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} --extra-utr-arg "reruncount=2" |
|
|
|
- upm-ci project test -u {{ editor.version }} --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} --extra-create-project-arg="-upmNoDefaultPackages" --extra-utr-arg "reruncount=2" |
|
|
|
{% if editor.enableCodeCoverage %} |
|
|
|
- python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ package.minCoveragePct }} |
|
|
|
{% endif %} |
|
|
|