forked from unity3d-jp/UnityChanToonShaderVer2_Project
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/task 831 shader compile error (#89)
* Fixed: HDRP shader compile errors on 2021.2 * Added mac tests with 2020.3 2021.1 and 2021.2. * Fixed error on Light and Shdows scene 2021.2.
- Loading branch information
Showing
19 changed files
with
853 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# | ||
# | ||
test_projects: | ||
- name: HdrpGraphicsTest-2020.3 | ||
unity_versions: | ||
- name: 2020.3 | ||
- name: 2021.1 | ||
--- | ||
{% for test_project in test_projects %} | ||
{% for unity_version in unity_versions %} | ||
{{ test_project.name }}_OSX_Metal_playmode_mono_Linear_{{ unity_version.name }}: | ||
name: {{ test_project.name }} on OSX_Metal_playmode_mono_Linear on version {{ unity_version.name }} | ||
agent: | ||
type: Unity::metal::macmini | ||
image: slough-ops/macos-10.14-xcode:stable | ||
flavor: m1.mac | ||
variables: | ||
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates | ||
commands: | ||
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output TestProjects/{{ test_project.name }}/utr | ||
- chmod +x TestProjects/{{ test_project.name }}/utr | ||
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "bash -lc 'pip3 install unity-downloader-cli --user --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade'" | ||
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r $YAMATO_SOURCE_DIR bokken@$BOKKEN_DEVICE_IP:~/com.unity.toonshader | ||
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" ~/.ssh/id_rsa_macmini bokken@$BOKKEN_DEVICE_IP:~/.ssh/id_rsa_macmini | ||
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP '$(python3 -m site --user-base)/bin/unity-downloader-cli --source-file ~/com.unity.toonshader/unity_revision_{{ unity_version.name }}.txt -c editor -c il2cpp --wait --published-only' | ||
- |5- | ||
ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "export UPM_REGISTRY=https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates; echo \$UPM_REGISTRY; cd ~/com.unity.toonshader/TestProjects/{{ test_project.name }} && ~/com.unity.toonshader/TestProjects/{{ test_project.name }}/utr --artifacts_path=/Users/bokken/com.unity.toonshader/TestProjects/{{ test_project.name }}/test-results --editor-location=/Users/bokken/.Editor --extra-editor-arg="-colorspace=Linear" --reruncount=2 --scripting-backend=Mono2x --suite=playmode --testproject=/Users/bokken/com.unity.toonshader/TestProjects/{{ test_project.name }}" | ||
UTR_RESULT=$? | ||
mkdir -p TestProjects/{{ test_project.name }}/test-results/ | ||
scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r bokken@$BOKKEN_DEVICE_IP:/Users/bokken/com.unity.toonshader/TestProjects/{{ test_project.name }}/test-results/ TestProjects/{{ test_project.name }}/test-results/ | ||
exit $UTR_RESULT | ||
triggers: | ||
branches: | ||
only: | ||
- "/.*/" | ||
artifacts: | ||
logs: | ||
paths: | ||
- "**/test-results/**" | ||
- "TestProjects/{{ test_project.name }}/Logs/*.log" | ||
dependencies: | ||
- path: .yamato/_editor.yml#editor:priming:{{ unity_version.name }}:macos | ||
rerun: on-new-revision | ||
{% endfor %} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# | ||
# | ||
# | ||
test_projects: | ||
- name: HdrpGraphicsTest-2021.2 | ||
unity_versions: | ||
- name: 2021.2 | ||
--- | ||
{% for test_project in test_projects %} | ||
{% for unity_version in unity_versions %} | ||
{{ test_project.name }}_OSX_Metal_playmode_mono_Linear_{{ unity_version.name }}: | ||
name: {{ test_project.name }} on OSX_Metal_playmode_mono_Linear on version {{ unity_version.name }} | ||
agent: | ||
type: Unity::metal::macmini | ||
image: slough-ops/macos-10.14-xcode:stable | ||
flavor: m1.mac | ||
variables: | ||
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates | ||
commands: | ||
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output TestProjects/{{ test_project.name }}/utr | ||
- chmod +x TestProjects/{{ test_project.name }}/utr | ||
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "bash -lc 'pip3 install unity-downloader-cli --user --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade'" | ||
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r $YAMATO_SOURCE_DIR bokken@$BOKKEN_DEVICE_IP:~/com.unity.toonshader | ||
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" ~/.ssh/id_rsa_macmini bokken@$BOKKEN_DEVICE_IP:~/.ssh/id_rsa_macmini | ||
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP '$(python3 -m site --user-base)/bin/unity-downloader-cli --source-file ~/com.unity.toonshader/unity_revision_{{ unity_version.name }}.txt -c editor -c il2cpp --wait --published-only' | ||
- |5- | ||
ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "export UPM_REGISTRY=https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates; echo \$UPM_REGISTRY; cd ~/com.unity.toonshader/TestProjects/{{ test_project.name }} && ~/com.unity.toonshader/TestProjects/{{ test_project.name }}/utr --artifacts_path=/Users/bokken/com.unity.toonshader/TestProjects/{{ test_project.name }}/test-results --editor-location=/Users/bokken/.Editor --extra-editor-arg="-colorspace=Linear" --reruncount=2 --scripting-backend=Mono2x --suite=playmode --testproject=/Users/bokken/com.unity.toonshader/TestProjects/{{ test_project.name }}" | ||
UTR_RESULT=$? | ||
mkdir -p TestProjects/{{ test_project.name }}/test-results/ | ||
scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r bokken@$BOKKEN_DEVICE_IP:/Users/bokken/com.unity.toonshader/TestProjects/{{ test_project.name }}/test-results/ TestProjects/{{ test_project.name }}/test-results/ | ||
exit $UTR_RESULT | ||
triggers: | ||
branches: | ||
only: | ||
- "/.*/" | ||
artifacts: | ||
logs: | ||
paths: | ||
- "**/test-results/**" | ||
- "TestProjects/{{ test_project.name }}/Logs/*.log" | ||
dependencies: | ||
- path: .yamato/_editor.yml#editor:priming:{{ unity_version.name }}:macos | ||
rerun: on-new-revision | ||
{% endfor %} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# | ||
# | ||
test_projects: | ||
- name: HdrpDX12GraphicsTest-2021.2 | ||
unity_versions: | ||
- name: 2021.2 | ||
--- | ||
{% for test_project in test_projects %} | ||
{% for unity_version in unity_versions %} | ||
{{ test_project.name }}_Win_DX12_playmode_{{ unity_version.name }}: | ||
name: {{ test_project.name }} on Win_DX11_playmode on version {{ unity_version.name }} | ||
agent: | ||
type: Unity::VM::GPU | ||
image: graphics-foundation/win10-dxr:stable | ||
flavor: b1.xlarge | ||
model: rtx2080 | ||
variables: | ||
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates | ||
dependencies: | ||
- path: .yamato/_editor.yml#editor:priming:{{ unity_version.name }}:windows | ||
rerun: on-new-revision | ||
commands: | ||
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output TestProjects/{{ test_project.name }}/utr.bat | ||
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade | ||
- cd TestProjects/{{ test_project.name }} && unity-downloader-cli --source-file ../../unity_revision_{{ unity_version.name }}.txt -c editor -c il2cpp --wait --published-only | ||
- cd TestProjects/{{ test_project.name }} && utr --suite=playmode --testproject=. --editor-location=.Editor --artifacts_path=test-results | ||
timeout: 360000 | ||
retries: 1 | ||
triggers: | ||
branches: | ||
only: | ||
- "/.*/" | ||
artifacts: | ||
logs: | ||
paths: | ||
- "**/test-results/**" | ||
{% endfor %} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# | ||
# | ||
test_projects: | ||
- name: HdrpGraphicsTest-2021.2 | ||
unity_versions: | ||
- name: 2021.2 | ||
--- | ||
{% for test_project in test_projects %} | ||
{% for unity_version in unity_versions %} | ||
{{ test_project.name }}_Win_Vulkan_playmode_{{ unity_version.name }}: | ||
name: {{ test_project.name }} on Win_Vulkan_playmode on version {{ unity_version.name }} | ||
agent: | ||
type: Unity::VM::GPU | ||
image: graphics-foundation/win10-dxr:stable | ||
flavor: b1.xlarge | ||
model: rtx2080 | ||
variables: | ||
UPM_REGISTRY: https://artifactory-slo.bf.unity3d.com/artifactory/api/npm/upm-candidates | ||
dependencies: | ||
- path: .yamato/_editor.yml#editor:priming:{{ unity_version.name }}:windows | ||
rerun: on-new-revision | ||
commands: | ||
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output TestProjects/{{ test_project.name }}/utr.bat | ||
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade | ||
- cd TestProjects/{{ test_project.name }} && unity-downloader-cli --source-file ../../unity_revision_{{ unity_version.name }}.txt -c editor -c il2cpp --wait --published-only | ||
# - cd TestProjects/{{ test_project.name }} && utr --scripting-backend=Mono2x --suite=playmode --suite=playmode --testproject=. --editor-location=.Editor --artifacts_path=test-results --zero-tests-are-ok=1 | ||
- cd TestProjects/{{ test_project.name }} && utr --suite=playmode --testproject=. --editor-location=.Editor --artifacts_path=test-results | ||
timeout: 360000 | ||
retries: 1 | ||
triggers: | ||
branches: | ||
only: | ||
- "/.*/" | ||
artifacts: | ||
logs: | ||
paths: | ||
- "**/test-results/**" | ||
{% endfor %} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
TestProjects/HdrpDX12GraphicsTest-2021.2/ProjectSettings/ProjectVersion.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
m_EditorVersion: 2021.2.0b13 | ||
m_EditorVersionWithRevision: 2021.2.0b13 (94c1109a0557) | ||
m_EditorVersion: 2021.2.0b16 | ||
m_EditorVersionWithRevision: 2021.2.0b16 (edbc0738c91b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.