@@ -27,4 +27,49 @@ test_{{project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}:
2727{% endfor -%}
2828{% endfor -%}
2929{% endfor -%}
30+ {% endfor -%}
31+
32+ # Test minimal project with different versions of dependencies
33+ {% for project in projects -%}
34+ {% if project.name == "minimalproject" -%}
35+ {% for package in project.packages -%}
36+ {% for dependency in dependencies -%}
37+ {% for editor in project.test_editors -%}
38+ {% for platform in test_platforms -%}
39+ test_{{project.name}}_{{ package.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ editor }}_{{ platform.name }} :
40+ name : {{ project.name }} - {{ package.name }} with {{ dependency.name }}@{{ dependency.version }} - {{ editor }} on {{ platform.name }}
41+ agent :
42+ type : {{ platform.type }}
43+ image : {{ platform.image }}
44+ flavor : {{ platform.flavor}}
45+ commands :
46+ - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
47+ {% if platform.name == "ubuntu" %}
48+ - curl -L https://artifactory.prd.it.unity3d.com/artifactory/api/gpg/key/public | sudo apt-key add -
49+ - sudo sh -c "echo 'deb https://artifactory.prd.it.unity3d.com/artifactory/unity-apt-local bionic main' > /etc/apt/sources.list.d/unity.list"
50+ - sudo apt update
51+ - sudo apt install -y unity-config
52+ {% endif %}
53+ {% if platform.name == "mac" %}
54+ - brew tap --force-auto-update unity/unity git@github.cds.internal.unity3d.com:unity/homebrew-unity.git
55+ - brew install unity-config
56+ {% endif %}
57+ {% if platform.name == "win" %}
58+ - choco source add --priority 1 -n Unity -s https://artifactory.prd.it.unity3d.com/artifactory/api/nuget/unity-choco-local
59+ - choco install unity-config
60+ {% endif %}
61+ - unity-config settings project-path {{ project.path }}
62+ - unity-config project add dependency {{ dependency.name }}@{{ dependency.version }}
63+ - {% if platform.name == "ubuntu" %}DISPLAY=:0 {% endif %}upm-ci project test -u {{ editor }} --type package-tests --project-path {{ project.name }} --package-filter {{ package.name }}
64+ artifacts :
65+ logs :
66+ paths :
67+ - " upm-ci~/test-results/**/*"
68+ dependencies :
69+ - .yamato/project-pack.yml#pack_{{ project.name }}
70+ {% endfor -%}
71+ {% endfor -%}
72+ {% endfor -%}
73+ {% endfor -%}
74+ {% endif -%}
3075{% endfor -%}
0 commit comments