Skip to content

Commit 08cd563

Browse files
authored
Merge pull request #184 from myii/ci/standardise-structure
chore: use `semantic-release` cross-formula standard structure
2 parents 4dc3e14 + 45f9a75 commit 08cd563

File tree

9 files changed

+153
-566
lines changed

9 files changed

+153
-566
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ coverage.xml
4848
.kitchen
4949
.kitchen.local.yml
5050
kitchen.local.yml
51+
junit-*.xml
5152

5253
# Translations
5354
*.mo
@@ -111,3 +112,11 @@ docs/*.md
111112

112113
# Vim
113114
*.sw?
115+
116+
## Collected when centralising formulas (check and sort)
117+
# `collectd-formula`
118+
.pytest_cache/
119+
/.idea/
120+
Dockerfile.*_*
121+
ignore/
122+
tmp/

.travis.yml

Lines changed: 25 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
---
14
stages:
25
- test
36
- commitlint
@@ -7,52 +10,38 @@ stages:
710
sudo: required
811
cache: bundler
912
language: ruby
13+
dist: xenial
1014

1115
services:
1216
- docker
1317

1418
# Make sure the instances listed below match up with
1519
# the `platforms` defined in `kitchen.yml`
16-
# NOTE: Please try to select up to six instances that add some meaningful
17-
# testing of the formula's behaviour. If possible, try to refrain from
18-
# the classical "chosing all the instances because I want to test on
19-
# another/all distro/s" trap: it will just add time to the testing (see
20-
# the discussion on #121). As an example, the set chosen below covers
21-
# the most used distros families, systemd and non-systemd and the latest
22-
# three supported Saltstack versions with python2 and 3."
23-
# As for `kitchen.yml`, that should still contain all of the platforms,
24-
# to allow for comprehensive local testing
25-
# Ref: https://github.com/saltstack-formulas/template-formula/issues/118
26-
# Ref: https://github.com/saltstack-formulas/template-formula/issues/121
2720
env:
2821
matrix:
29-
- INSTANCE: default-debian-9-develop-py3
30-
# - INSTANCE: default-ubuntu-1804-develop-py3
31-
# - INSTANCE: default-centos-7-develop-py3
32-
# - INSTANCE: default-fedora-29-develop-py3
33-
# - INSTANCE: default-opensuse-leap-15-develop-py3
34-
# - INSTANCE: default-debian-9-2019-2-py3
35-
- INSTANCE: default-ubuntu-1804-2019-2-py3
36-
- INSTANCE: default-centos-7-2019-2-py3
37-
# - INSTANCE: default-fedora-29-2019-2-py3
38-
# - INSTANCE: default-opensuse-leap-15-2019-2-py3
39-
# - INSTANCE: default-debian-9-2018-3-py2
40-
# - INSTANCE: default-ubuntu-1604-2018-3-py2
41-
# - INSTANCE: default-centos-7-2018-3-py2
42-
- INSTANCE: default-fedora-29-2018-3-py2
43-
# TODO: Use this when fixed instead of `opensuse-leap-42`
44-
# Ref: https://github.com/netmanagers/salt-image-builder/issues/2
45-
# - INSTANCE: default-opensuse-leap-15-2018-3-py2
46-
- INSTANCE: default-opensuse-leap-42-2018-3-py2
47-
# - INSTANCE: default-debian-8-2017-7-py2
48-
# - INSTANCE: default-ubuntu-1604-2017-7-py2
49-
# TODO: Enable after improving the formula to work with other than `systemd`
50-
- INSTANCE: default-centos-6-2017-7-py2
51-
# - INSTANCE: default-fedora-28-2017-7-py2
52-
# - INSTANCE: default-opensuse-leap-42-2017-7-py2
22+
- INSTANCE: debian-debian-9-develop-py3
23+
# - INSTANCE: debian-ubuntu-1804-develop-py3
24+
# - INSTANCE: redhat-centos-7-develop-py3
25+
# - INSTANCE: redhat-fedora-29-develop-py3
26+
# - INSTANCE: suse-opensuse-leap-15-develop-py3
27+
# - INSTANCE: debian-debian-9-2019-2-py3
28+
- INSTANCE: debian-ubuntu-1804-2019-2-py3
29+
- INSTANCE: redhat-centos-7-2019-2-py3
30+
# - INSTANCE: redhat-fedora-29-2019-2-py3
31+
# - INSTANCE: suse-opensuse-leap-15-2019-2-py3
32+
# - INSTANCE: debian-debian-9-2018-3-py2
33+
# - INSTANCE: debian-ubuntu-1604-2018-3-py2
34+
# - INSTANCE: redhat-centos-7-2018-3-py2
35+
- INSTANCE: redhat-fedora-29-2018-3-py2
36+
- INSTANCE: suse-opensuse-leap-42-2018-3-py2
37+
# - INSTANCE: debian-debian-8-2017-7-py2
38+
# - INSTANCE: debian-ubuntu-1604-2017-7-py2
39+
- INSTANCE: redhat-centos-6-2017-7-py2
40+
# - INSTANCE: redhat-fedora-28-2017-7-py2
41+
# - INSTANCE: suse-opensuse-leap-42-2017-7-py2
5342

5443
script:
55-
- bundle exec kitchen verify ${INSTANCE}
44+
- bin/kitchen verify ${INSTANCE}
5645

5746
jobs:
5847
include:

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
source 'https://rubygems.org'
1+
source "https://rubygems.org"
22

33
gem 'kitchen-docker', '>= 2.9'
4-
gem 'kitchen-salt', '>= 0.6.0'
4+
gem 'kitchen-salt', '>= 0.6.0'
55
gem 'kitchen-inspec', '>= 1.1'
6+

docs/CONTRIBUTING.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,4 @@ An example of that:
156156
BREAKING CHANGE: With the removal of all of the `.sls` files under
157157
`template package`, this formula no longer supports the installation of
158158
packages.
159+

0 commit comments

Comments
 (0)