com.unity.mobile.logcat/.yamato/upm-integration-ci.yml

30 строки
1.5 KiB
YAML

{% metadata_file .yamato/config.metadata %}
---
{% for editor in test_editors_for_integration %}
test_integration_{{ editor.version }}:
name : Test Integration on {{ editor.version }}
agent:
type: Unity::mobile::shield
image: mobile/android-package-ci-win:latest
flavor: b1.medium
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
- unity-downloader-cli -u {{ editor.version }} -c editor -c android --wait
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
- move ./disable_tests_csc.rsp ./com.unity.mobile.android-logcat/Tests/Editor/csc.rsp
- |
REM Set the IP of the device. In case device gets lost, UTR will try to recconect to ANDROID_DEVICE_CONNECTION
set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
set ARTIFACTS_PATH=upm-ci~/test-results/integration-artifacts/
REM Editor will perform the connection instead of upm script, since editor might use different SDK (and adb)
./utr.bat --suite=editor --editor-location=.Editor --testproject="TestProjects/SampleProject1" --artifacts_path=upm-ci~/test-results/editor-android/
artifacts:
integration_{{ editor.version }}_logs:
paths:
- "upm-ci~/test-results/**/*"
dependencies:
- .yamato/upm-ci.yml#pack
{% endfor %}