您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
40 行
2.1 KiB
40 行
2.1 KiB
{% metadata_file .yamato/test_versions.metafile %}
|
|
---
|
|
{% for config in test_configs %}
|
|
test_standalone_{{ config.name }}:
|
|
name: Test Mac Standalone {{ config.version }}
|
|
agent:
|
|
type: Unity::VM::osx
|
|
image: ml-agents/ml-agents-bokken-mac:0.1.4-492264
|
|
flavor: i1.small
|
|
variables:
|
|
UNITY_VERSION: {{ config.version }}
|
|
commands:
|
|
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
|
|
# TODO remove the "--user" command and the path prefix when we can migrate away from the custom bokken image
|
|
- python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade --user
|
|
- /Users/bokken/Library/Python/3.7/bin/unity-downloader-cli -u {{ config.version }} -c editor --wait --fast
|
|
- python -u -m ml-agents.tests.yamato.standalone_build_tests
|
|
- python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/Basic/Scenes/Basic.unity
|
|
- python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/Bouncer/Scenes/Bouncer.unity
|
|
- python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/WallJump/Scenes/WallJump.unity
|
|
- python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/TestScenes/TestCompressedGrid/TestGridCompressed.unity
|
|
- python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/TestScenes/TestCompressedTexture/TestTextureCompressed.unity
|
|
triggers:
|
|
cancel_old_ci: true
|
|
expression: |
|
|
(pull_request.target eq "master" OR
|
|
pull_request.target match "release.+") AND
|
|
NOT pull_request.draft AND
|
|
(pull_request.changes.any match "com.unity.ml-agents/**" OR
|
|
pull_request.changes.any match "com.unity.ml-agents.extensions/**" OR
|
|
pull_request.changes.any match ".yamato/standalone-build-test.yml") AND
|
|
NOT pull_request.changes.all match "**/*.md"
|
|
artifacts:
|
|
logs:
|
|
paths:
|
|
- "artifacts/standalone_build.txt"
|
|
standalonebuild:
|
|
paths:
|
|
- "artifacts/testPlayer*/**"
|
|
{% endfor %}
|