Martin Polreich | c25959a | 2017-08-24 16:09:28 +0200 | [diff] [blame] | 1 | suites: |
| 2 | |
| 3 | - name: <%= ENV['SUITE'] %> |
| 4 | provisioner: |
| 5 | pillars-from-files: |
Petr Michalec | 52d4e1f | 2017-09-11 17:50:54 +0200 | [diff] [blame] | 6 | <%# to parse SUITE=kubernetes:pillar1,kubernetes_extra:pillar2 %> |
| 7 | <%- ENV['SUITE'].split(',').each |suite| %> |
| 8 | <%- set suite = [suite.split(':')].flatten %> |
| 9 | <%- if suite.length > 1 %> |
| 10 | <%- set key=suite[0] %> |
| 11 | <%- set file=suite[1] %> |
| 12 | <%- else %> |
| 13 | <%- set key='kubernetes' %> |
| 14 | <%- set file=suite[0] %> |
| 15 | <%- end %> |
| 16 | <%= key %>.sls: tests/pillar/<%= file %>.sls |
| 17 | <%- end %> |