Skip to content

Commit

Permalink
Merge branch 'master' into HDRP/staging
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienlagarde committed Apr 28, 2020
2 parents 73d2c19 + c9faa59 commit 26d953e
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 78 deletions.
50 changes: 27 additions & 23 deletions .yamato/upm-ci-hdrp_hybrid.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
editors:
- version: 2020.1
rerun_strategy: on-new-revision
# - version: fast-2020.1
# rerun_strategy: on-new-revision
- version: fast-2020.1
rerun_strategy: on-new-revision
- version: trunk
rerun_strategy: on-new-revision
# - version: fast-trunk
# rerun_strategy: on-new-revision
- version: fast-trunk
rerun_strategy: on-new-revision
- version: CUSTOM-REVISION
rerun_strategy: always
platforms:
Expand Down Expand Up @@ -79,13 +79,14 @@ linux_apis:
type: Unity::VM::GPU
image: sdet/gamecode_win10:stable
skip_checkout: true
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade

- cd TestProjects/{{ project.folder }} && unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only

Expand All @@ -106,10 +107,11 @@ Build_{{ project.name }}_Win_{{ win_api.name }}_Player_{{ editor.version }}:
flavor: b1.xlarge
type: Unity::VM
image: sdet/gamecode_win10:stable
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
Expand Down Expand Up @@ -141,20 +143,21 @@ Build_{{ project.name }}_Win_{{ win_api.name }}_Player_{{ editor.version }}:
{% endif %}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple

- cd TestProjects/{{ project.folder }} && unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only

{% if testplatform.name == "Standalone" %}
- cd TestProjects/{{ project.folder }} && utr\utr {{ testplatform.args }}Windows64 --extra-editor-arg="-executemethod" --extra-editor-arg="CustomBuild.BuildWindows{{ win_api.name }}Linear" --testproject=. --editor-location=.Editor --artifacts_path=upm-ci~/test-results --timeout=1200
- cd TestProjects/{{ project.folder }} && utr\utr {{ testplatform.args }}Windows64 --extra-editor-arg="-executemethod" --extra-editor-arg="CustomBuild.BuildWindows{{ win_api.name }}Linear" --testproject=. --editor-location=.Editor --artifacts_path=test-results --timeout=1200
{% else %}
- cd TestProjects/{{ project.folder }} && utr\utr {{ testplatform.args }} --extra-editor-arg="{{ win_api.cmd }}" --testproject=. --editor-location=.Editor --artifacts_path=upm-ci~/test-results
- cd TestProjects/{{ project.folder }} && utr\utr {{ testplatform.args }} --extra-editor-arg="{{ win_api.cmd }}" --testproject=. --editor-location=.Editor --artifacts_path=test-results
{% endif %}
dependencies:
- path: .yamato/z_editor.yml#editor:priming:{{ editor.version }}:{{ platform.os }}
Expand All @@ -180,13 +183,14 @@ Build_{{ project.name }}_Win_{{ win_api.name }}_Player_{{ editor.version }}:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "bash -lc 'pip3 install --user unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple'"
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "bash -lc 'pip3 install --user unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade'"
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r $YAMATO_SOURCE_DIR bokken@$BOKKEN_DEVICE_IP:~/Graphics
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" ~/.ssh/id_rsa_macmini bokken@$BOKKEN_DEVICE_IP:~/.ssh/id_rsa_macmini

Expand Down Expand Up @@ -232,30 +236,30 @@ Build_{{ project.name }}_Win_{{ win_api.name }}_Player_{{ editor.version }}:
{% endif %}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- sudo -H pip install --upgrade pip
- sudo -H pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
- sudo npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
- sudo -H pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr

- cd TestProjects/{{ project.folder }} && sudo unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only

{% if testplatform.name == "Standalone" %}
- cd TestProjects/{{ project.folder }} && DISPLAY=:0.0 utr/utr {{ testplatform.args }}Linux64 --extra-editor-arg="-executemethod" --extra-editor-arg="CustomBuild.BuildLinux{{ linux_api.name }}Linear" --testproject=. --editor-location=.Editor --artifacts_path=upm-ci~/test-results
- cd TestProjects/{{ project.folder }} && DISPLAY=:0.0 utr/utr {{ testplatform.args }}Linux64 --extra-editor-arg="-executemethod" --extra-editor-arg="CustomBuild.BuildLinux{{ linux_api.name }}Linear" --testproject=. --editor-location=.Editor --artifacts_path=test-results
{% else %}
- cd TestProjects/{{ project.folder }} && DISPLAY=:0.0 utr/utr --extra-editor-arg="{{ linux_api.cmd }}" {{ testplatform.args }} --testproject=. --editor-location=.Editor --artifacts_path=upm-ci~/test-results
- cd TestProjects/{{ project.folder }} && DISPLAY=:0.0 utr/utr --extra-editor-arg="{{ linux_api.cmd }}" {{ testplatform.args }} --testproject=. --editor-location=.Editor --artifacts_path=test-results
{% endif %}
dependencies:
- path: .yamato/z_editor.yml#editor:priming:{{ editor.version }}:{{ platform.os }}
rerun: {{ editor.rerun_strategy }}
artifacts:
logs:
paths:
- "**/upm-ci~/test-results/**/*"
- "**/test-results/**/*"
{% endfor %}
{% endif %}
{% endfor %}
Expand Down
81 changes: 45 additions & 36 deletions .yamato/upm-ci-universal_hybrid.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
editors:
- version: 2020.1
rerun_strategy: on-new-revision
# - version: fast-2020.1
# rerun_strategy: on-new-revision
- version: fast-2020.1
rerun_strategy: on-new-revision
- version: trunk
rerun_strategy: on-new-revision
# - version: fast-trunk
# rerun_strategy: on-new-revision
- version: fast-trunk
rerun_strategy: on-new-revision
- version: CUSTOM-REVISION
rerun_strategy: always
platforms:
Expand Down Expand Up @@ -95,13 +95,14 @@ android_apis:
type: Unity::VM::GPU
image: sdet/gamecode_win10:stable
skip_checkout: true
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade

- cd TestProjects/{{ project.folder }} && unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only

Expand All @@ -122,13 +123,14 @@ Build_{{ project.name }}_Win_{{ win_api.name }}_Player_{{ editor.version }}:
flavor: b1.xlarge
type: Unity::VM
image: sdet/gamecode_win10:stable
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade

- cd TestProjects/{{ project.folder }} && unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only

Expand Down Expand Up @@ -156,13 +158,14 @@ Build_{{ project.name }}_Win_{{ win_api.name }}_Player_{{ editor.version }}:
{% endif %}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade

- cd TestProjects/{{ project.folder }} && unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only

Expand Down Expand Up @@ -191,13 +194,14 @@ Build_{{ project.name }}_OSX_OpenGLCore_Player_{{ editor.version }}:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade

- cd TestProjects/{{ project.folder }} && unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only

Expand All @@ -220,13 +224,14 @@ Build_{{ project.name }}_OSX_OpenGLCore_Player_{{ editor.version }}:
image: buildfarm/mac:stable
flavor: m1.mac
skip_checkout: true
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade

- cd TestProjects/{{ project.folder }} && unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only

Expand All @@ -248,22 +253,23 @@ Build_{{ project.name }}_OSX_OpenGLCore_Player_{{ editor.version }}:
type: Unity::VM::osx
image: buildfarm/mac:stable
flavor: m1.mac
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade

- cd TestProjects/{{ project.folder }} && unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only

- cd TestProjects/{{ project.folder }} && utr/utr {{ testplatform.args }} --testproject=. --editor-location=.Editor --artifacts_path=test-results

{% if testplatform.name == "Standalone" %}
- cd TestProjects/{{ project.folder }} && utr/utr {{ testplatform.args }}OSX --testproject=. --editor-location=.Editor --artifacts_path=upm-ci~/test-results --timeout=1200
- cd TestProjects/{{ project.folder }} && utr/utr {{ testplatform.args }}OSX --testproject=. --editor-location=.Editor --artifacts_path=test-results --timeout=1200
{% else %}
- cd TestProjects/{{ project.folder }} && utr/utr {{ testplatform.args }} --testproject=. --editor-location=.Editor --artifacts_path=upm-ci~/test-results
- cd TestProjects/{{ project.folder }} && utr/utr {{ testplatform.args }} --testproject=. --editor-location=.Editor --artifacts_path=test-results
{% endif %}
dependencies:
- path: .yamato/z_editor.yml#editor:priming:{{ editor.version }}:{{ platform.os }}
Expand All @@ -288,14 +294,15 @@ Build_{{ project.name }}_OSX_OpenGLCore_Player_{{ editor.version }}:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr

- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "bash -lc 'pip3 install --user unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple'"
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "bash -lc 'pip3 install --user unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade'"
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r $YAMATO_SOURCE_DIR bokken@$BOKKEN_DEVICE_IP:~/Graphics
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" ~/.ssh/id_rsa_macmini bokken@$BOKKEN_DEVICE_IP:~/.ssh/id_rsa_macmini

Expand Down Expand Up @@ -339,14 +346,14 @@ Build_{{ project.name }}_OSX_OpenGLCore_Player_{{ editor.version }}:
{% endif %}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- sudo -H pip install --upgrade pip
- sudo -H pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
- sudo npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
- sudo -H pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple --upgrade
- git clone git@github.cds.internal.unity3d.com:unity/utr.git TestProjects/{{ project.folder }}/utr

- cd TestProjects/{{ project.folder }} && sudo unity-downloader-cli --source-file ../../unity_revision.txt {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only
Expand Down Expand Up @@ -376,13 +383,14 @@ Build_{{ project.name }}_Android_{{ android_api.name }}_{{ editor.version }}:
type: Unity::VM
image: {{ platform.image }}
flavor: {{ platform.flavor }}
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
commands:
- git clone git@github.cds.internal.unity3d.com:unity/utr.git utr
- pip install unity-downloader-cli --extra-index-url https://artifactory.eu-cph-1.unityops.net/api/pypi/common-python/simple
- pip install unity-downloader-cli --extra-index-url https://artifactory.eu-cph-1.unityops.net/api/pypi/common-python/simple --upgrade
- unity-downloader-cli --source-file %YAMATO_SOURCE_DIR%/unity_revision.txt -p WindowsEditor {% for component in platform.components %}-c {{ component }} {% endfor %}--wait --published-only
- mklink /d WindowsEditor\Data\PlaybackEngines\AndroidPlayer\OpenJDK %JAVA_HOME%
- mklink /d WindowsEditor\Data\PlaybackEngines\AndroidPlayer\SDK %ANDROID_SDK_ROOT%
Expand All @@ -409,10 +417,11 @@ Build_{{ project.name }}_Android_{{ android_api.name }}_{{ editor.version }}:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
{% if editor.version == 'CUSTOM-REVISION' %}
variables:
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates
{% if editor.version == 'CUSTOM-REVISION' %}
CUSTOM_REVISION: custom_revision_not_set
{% endif %}
{% endif %}
skip_checkout: true
commands:
- pip install unity-downloader-cli --extra-index-url https://artifactory.internal.unity3d.com/api/pypi/common-python/simple
Expand Down
Loading

0 comments on commit 26d953e

Please sign in to comment.