From 0cff0f02581fa634844eeeb7b020348c7266cfe4 Mon Sep 17 00:00:00 2001 From: vincentpierre Date: Tue, 25 Feb 2020 10:27:27 -0800 Subject: [PATCH] Added yamato CI --- .yamato/com.unity.ai.mlagents-pack.yml | 13 ++++++++ .yamato/com.unity.ai.mlagents-test.yml | 44 ++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .yamato/com.unity.ai.mlagents-pack.yml create mode 100644 .yamato/com.unity.ai.mlagents-test.yml diff --git a/.yamato/com.unity.ai.mlagents-pack.yml b/.yamato/com.unity.ai.mlagents-pack.yml new file mode 100644 index 0000000..60b53bb --- /dev/null +++ b/.yamato/com.unity.ai.mlagents-pack.yml @@ -0,0 +1,13 @@ +pack: + name: Pack + agent: + type: Unity::VM + image: package-ci/ubuntu:stable + flavor: b1.large + commands: + - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm + - upm-ci package pack --package-path com.unity.ai.mlagents + artifacts: + packages: + paths: + - "upm-ci~/packages/**/*" diff --git a/.yamato/com.unity.ai.mlagents-test.yml b/.yamato/com.unity.ai.mlagents-test.yml new file mode 100644 index 0000000..dde3c1e --- /dev/null +++ b/.yamato/com.unity.ai.mlagents-test.yml @@ -0,0 +1,44 @@ +test_editors: + - version: 2019.3 +test_platforms: + - name: win + type: Unity::VM + image: package-ci/win10:stable + flavor: b1.large + - name: mac + type: Unity::VM::osx + image: package-ci/mac:stable + flavor: b1.small + - name: linux + type: Unity::VM + image: package-ci/ubuntu:stable + flavor: b1.medium +--- + +{% for editor in test_editors %} + {% for platform in test_platforms %} +test_{{ platform.name }}_{{ editor.version }}: + name : com.unity.ai.mlagents test {{ editor.version }} on {{ platform.name }} + agent: + type: {{ platform.type }} + image: {{ platform.image }} + flavor: {{ platform.flavor}} + commands: + - npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm + - upm-ci package test -u {{ editor.version }} --package-path com.unity.ai.mlagents + artifacts: + logs: + paths: + - "upm-ci~/test-results/**/*" + dependencies: + - .yamato/com.unity.ai.mlagents-pack.yml#pack + triggers: + changes: + only: + - ".yamato/com.unity.ai.mlagents-test.yml" + - "Runtime/**" + - "Editor/**" + - "Tests/**" + + {% endfor %} + {% endfor %}