Skip to content

Commit 6cba4af

Browse files
committed
fix(yamllint): use separate suite for ubuntu
* Semi-automated using myii/ssf-formula#18 * Close #174
1 parent 496ec28 commit 6cba4af

File tree

4 files changed

+45
-17
lines changed

4 files changed

+45
-17
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ services:
2020
env:
2121
matrix:
2222
- INSTANCE: debian-debian-9-develop-py3
23-
# - INSTANCE: debian-ubuntu-1804-develop-py3
23+
# - INSTANCE: ubuntu-ubuntu-1804-develop-py3
2424
# - INSTANCE: redhat-centos-7-develop-py3
2525
# - INSTANCE: redhat-fedora-29-develop-py3
2626
# - INSTANCE: suse-opensuse-leap-15-develop-py3
2727
# - INSTANCE: debian-debian-9-2019-2-py3
28-
- INSTANCE: debian-ubuntu-1804-2019-2-py3
28+
- INSTANCE: ubuntu-ubuntu-1804-2019-2-py3
2929
- INSTANCE: redhat-centos-7-2019-2-py3
3030
# - INSTANCE: redhat-fedora-29-2019-2-py3
3131
# - INSTANCE: suse-opensuse-leap-15-2019-2-py3
3232
# - INSTANCE: debian-debian-9-2018-3-py2
33-
# - INSTANCE: debian-ubuntu-1604-2018-3-py2
33+
# - INSTANCE: ubuntu-ubuntu-1604-2018-3-py2
3434
# - INSTANCE: redhat-centos-7-2018-3-py2
3535
- INSTANCE: redhat-fedora-29-2018-3-py2
3636
- INSTANCE: suse-opensuse-leap-42-2018-3-py2
3737
# - INSTANCE: debian-debian-8-2017-7-py2
38-
# - INSTANCE: debian-ubuntu-1604-2017-7-py2
38+
# - INSTANCE: ubuntu-ubuntu-1604-2017-7-py2
3939
- INSTANCE: redhat-centos-6-2017-7-py2
4040
# - INSTANCE: redhat-fedora-28-2017-7-py2
4141
# - INSTANCE: suse-opensuse-leap-42-2017-7-py2
@@ -54,7 +54,7 @@ jobs:
5454
# Install and run `yamllint`
5555
- pip install --user yamllint
5656
# yamllint disable-line rule:line-length
57-
- yamllint -s . .yamllint pillar.example test/salt/pillar/debian.sls test/salt/pillar/redhat.sls test/salt/pillar/suse.sls
57+
- yamllint -s . .yamllint pillar.example test/salt/pillar/debian.sls test/salt/pillar/ubuntu.sls test/salt/pillar/redhat.sls test/salt/pillar/suse.sls
5858
# Install and run `commitlint`
5959
- npm install @commitlint/config-conventional -D
6060
- npm install @commitlint/travis-cli -D

kitchen.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,34 @@ suites:
137137
- name: debian
138138
includes:
139139
- debian-9-develop-py3
140-
- ubuntu-1804-develop-py3
141140
- debian-9-2019-2-py3
142-
- ubuntu-1804-2019-2-py3
143141
- debian-9-2018-3-py2
144-
- ubuntu-1604-2018-3-py2
145142
- debian-8-2017-7-py2
143+
provisioner:
144+
state_top:
145+
base:
146+
'*':
147+
- php.repo
148+
- php.fpm.install
149+
- php.fpm.config
150+
- php.fpm.pools
151+
- php.modules
152+
- php.fpm.service
153+
pillars:
154+
top.sls:
155+
base:
156+
'*':
157+
- php
158+
pillars_from_files:
159+
php.sls: test/salt/pillar/debian.sls
160+
verifier:
161+
inspec_tests:
162+
- path: test/integration/default
163+
- name: ubuntu
164+
includes:
165+
- ubuntu-1804-develop-py3
166+
- ubuntu-1804-2019-2-py3
167+
- ubuntu-1604-2018-3-py2
146168
- ubuntu-1604-2017-7-py2
147169
provisioner:
148170
state_top:
@@ -159,8 +181,10 @@ suites:
159181
base:
160182
'*':
161183
- php
184+
- ubuntu
162185
pillars_from_files:
163186
php.sls: test/salt/pillar/debian.sls
187+
ubuntu.sls: test/salt/pillar/ubuntu.sls
164188
verifier:
165189
inspec_tests:
166190
- path: test/integration/default

test/salt/pillar/debian.sls

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,12 @@
22
# vim: ft=yaml
33
---
44
php:
5-
{% if salt['grains.get']('os') == 'Ubuntu' %}
6-
use_external_repo: true
7-
repo:
8-
humanname: php-sury ppa
9-
name: "deb http://ppa.launchpad.net/ondrej/php/ubuntu {{ salt['grains.get']('oscodename') }} main"
10-
file: /etc/apt/sources.list.d/php-sury.list
11-
key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c
12-
{% else %}
135
repo:
146
humanname: php-sury repo
7+
# yamllint disable-line rule:line-length
158
name: "deb https://packages.sury.org/php/ {{ salt['grains.get']('oscodename') }} main"
169
file: /etc/apt/sources.list.d/php-sury.list
1710
key_url: https://packages.sury.org/php/apt.gpg
18-
{% endif %}
1911

2012
version:
2113
- '5.6'

test/salt/pillar/ubuntu.sls

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
---
4+
php:
5+
use_external_repo: true
6+
repo:
7+
humanname: php-sury ppa
8+
# yamllint disable-line rule:line-length
9+
name: "deb http://ppa.launchpad.net/ondrej/php/ubuntu {{ salt['grains.get']('oscodename') }} main"
10+
file: /etc/apt/sources.list.d/php-sury.list
11+
# yamllint disable-line rule:line-length
12+
key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c

0 commit comments

Comments
 (0)