|
|
|
|
|
|
test_editors: |
|
|
|
- version: 2018.4 |
|
|
|
# 2018.4 doesn't support code-coverage |
|
|
|
coverageOptions: |
|
|
|
minCoveragePct: 0 |
|
|
|
enableCodeCoverage: !!bool false |
|
|
|
coverageOptions: --enable-code-coverage --code-coverage-options 'generateHtmlReport;assemblyFilters:+Unity.ML-Agents' |
|
|
|
minCoveragePct: 72 |
|
|
|
enableCodeCoverage: !!bool true |
|
|
|
coverageOptions: --enable-code-coverage --code-coverage-options 'generateHtmlReport;assemblyFilters:+Unity.ML-Agents' |
|
|
|
minCoveragePct: 72 |
|
|
|
enableCodeCoverage: !!bool true |
|
|
|
coverageOptions: --enable-code-coverage --code-coverage-options 'generateHtmlReport;assemblyFilters:+Unity.ML-Agents' |
|
|
|
minCoveragePct: 72 |
|
|
|
enableCodeCoverage: !!bool true |
|
|
|
coverageOptions: --enable-code-coverage --code-coverage-options 'generateHtmlReport;assemblyFilters:+Unity.ML-Agents' |
|
|
|
minCoveragePct: 72 |
|
|
|
enableCodeCoverage: !!bool true |
|
|
|
test_platforms: |
|
|
|
- name: win |
|
|
|
type: Unity::VM |
|
|
|
|
|
|
flavor: b1.medium |
|
|
|
packages: |
|
|
|
- name: com.unity.ml-agents |
|
|
|
assembly: Unity.ML-Agents |
|
|
|
minCoveragePct: 72 |
|
|
|
assembly: Unity.ML-Agents.Extensions |
|
|
|
minCoveragePct: 75 |
|
|
|
--- |
|
|
|
|
|
|
|
all_package_tests: |
|
|
|
|
|
|
{% for package in packages %} |
|
|
|
{% for editor in test_editors %} |
|
|
|
{% for platform in test_platforms %} |
|
|
|
|
|
|
|
{% if editor.enableCodeCoverage %} |
|
|
|
{% capture coverageOptions %} --enable-code-coverage --code-coverage-options 'generateHtmlReport;assemblyFilters:+{{ package.assembly }}'{% endcapture %} |
|
|
|
{% else %} |
|
|
|
{% assign coverageOptions = "" %} |
|
|
|
{% 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 Project --package-filter {{ package.name }} {{ editor.coverageOptions }} |
|
|
|
|
|
|
|
{% if package.name == "com.unity.ml-agents" %} |
|
|
|
# TODO get coverage tests running for extensions too |
|
|
|
- python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ editor.minCoveragePct }} |
|
|
|
- upm-ci project test -u {{ editor.version }} --project-path Project --package-filter {{ package.name }} {{ coverageOptions }} |
|
|
|
{% if editor.enableCodeCoverage %} |
|
|
|
- python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ package.minCoveragePct }} |
|
|
|
{% endif %} |
|
|
|
artifacts: |
|
|
|
logs: |
|
|
|
|
|
|
{% for package in packages %} |
|
|
|
{% for editor in trunk_editor %} |
|
|
|
{% for platform in test_platforms %} |
|
|
|
|
|
|
|
{% if editor.enableCodeCoverage %} |
|
|
|
{% capture coverageOptions %} --enable-code-coverage --code-coverage-options 'generateHtmlReport;assemblyFilters:+{{ package.assembly }}'{% endcapture %} |
|
|
|
{% else %} |
|
|
|
{% assign coverageOptions = "" %} |
|
|
|
{% endif %} |
|
|
|
test_{{ package.name }}_{{ platform.name }}_trunk: |
|
|
|
name : {{ package.name }} test {{ editor.version }} on {{ platform.name }} |
|
|
|
agent: |
|
|
|
|
|
|
commands: |
|
|
|
- python -m pip install unity-downloader-cli --extra-index-url https://artifactory.eu-cph-1.unityops.net/api/pypi/common-python/simple |
|
|
|
- python -m pip install unity-downloader-cli --extra-index-url https://artifactory.prd.it.unity3d.com/api/pypi/unity-pypi-local/simple |
|
|
|
- upm-ci project test -u {{ editor.version }} --project-path Project --package-filter {{ package.name }} {{ editor.coverageOptions }} |
|
|
|
{% if package.name == "com.unity.ml-agents" %} |
|
|
|
# TODO get coverage tests running for extensions too |
|
|
|
- python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ editor.minCoveragePct }} |
|
|
|
- upm-ci project test -u {{ editor.version }} --project-path Project --package-filter {{ package.name }} {{ coverageOptions }} |
|
|
|
{% if editor.enableCodeCoverage %} |
|
|
|
- python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ package.minCoveragePct }} |
|
|
|
{% endif %} |
|
|
|
artifacts: |
|
|
|
logs: |
|
|
|