chore: standardise structure [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/261
This commit is contained in:
parent
26b26abd28
commit
f6eb546174
21
.travis.yml
21
.travis.yml
@ -65,17 +65,7 @@ jobs:
|
|||||||
## Define the rest of the matrix based on Kitchen testing
|
## Define the rest of the matrix based on Kitchen testing
|
||||||
# Make sure the instances listed below match up with
|
# Make sure the instances listed below match up with
|
||||||
# the `platforms` defined in `kitchen.yml`
|
# the `platforms` defined in `kitchen.yml`
|
||||||
# NOTE: Please try to select up to six instances that add some meaningful
|
- env: INSTANCE=default-debian-10-master-py3
|
||||||
# testing of the formula's behaviour. If possible, try to refrain from
|
|
||||||
# the classical "chosing all the instances because I want to test on
|
|
||||||
# another/all distro/s" trap: it will just add time to the testing (see
|
|
||||||
# the discussion on #121). As an example, the set chosen below covers
|
|
||||||
# the most used distros families, systemd and non-systemd and the latest
|
|
||||||
# three supported Saltstack versions with python2 and 3.
|
|
||||||
# As for `kitchen.yml`, that should still contain all of the platforms,
|
|
||||||
# to allow for comprehensive local testing
|
|
||||||
# Ref: https://github.com/saltstack-formulas/template-formula/issues/118
|
|
||||||
# Ref: https://github.com/saltstack-formulas/template-formula/issues/121
|
|
||||||
- env: INSTANCE=default-ubuntu-2004-master-py3
|
- env: INSTANCE=default-ubuntu-2004-master-py3
|
||||||
# - env: INSTANCE=default-ubuntu-1804-master-py3
|
# - env: INSTANCE=default-ubuntu-1804-master-py3
|
||||||
- env: INSTANCE=default-centos-8-master-py3
|
- env: INSTANCE=default-centos-8-master-py3
|
||||||
@ -84,15 +74,15 @@ jobs:
|
|||||||
# - env: INSTANCE=default-opensuse-leap-152-master-py3
|
# - env: INSTANCE=default-opensuse-leap-152-master-py3
|
||||||
# - env: INSTANCE=default-amazonlinux-2-master-py3
|
# - env: INSTANCE=default-amazonlinux-2-master-py3
|
||||||
# - env: INSTANCE=default-debian-10-3000-3-py3
|
# - env: INSTANCE=default-debian-10-3000-3-py3
|
||||||
# - env: INSTANCE=default-debian-9-3000-3-py3
|
- env: INSTANCE=repo-debian-10-3000-3-py3
|
||||||
|
- env: INSTANCE=default-debian-9-3000-3-py3
|
||||||
# - env: INSTANCE=default-ubuntu-1804-3000-3-py3
|
# - env: INSTANCE=default-ubuntu-1804-3000-3-py3
|
||||||
# - env: INSTANCE=default-centos-8-3000-3-py3
|
# - env: INSTANCE=default-centos-8-3000-3-py3
|
||||||
# - env: INSTANCE=default-centos-7-3000-3-py3
|
# - env: INSTANCE=default-centos-7-3000-3-py3
|
||||||
|
- env: INSTANCE=repo-centos-7-3000-3-py3
|
||||||
# - env: INSTANCE=default-fedora-31-3000-3-py3
|
# - env: INSTANCE=default-fedora-31-3000-3-py3
|
||||||
- env: INSTANCE=default-opensuse-leap-152-3000-3-py3
|
- env: INSTANCE=default-opensuse-leap-152-3000-3-py3
|
||||||
- env: INSTANCE=default-amazonlinux-2-3000-3-py3
|
- env: INSTANCE=default-amazonlinux-2-3000-3-py3
|
||||||
- env: INSTANCE=default-debian-10-3001-py3
|
|
||||||
- env: INSTANCE=default-debian-9-3001-py3
|
|
||||||
# - env: INSTANCE=default-ubuntu-1804-3000-3-py2
|
# - env: INSTANCE=default-ubuntu-1804-3000-3-py2
|
||||||
# - env: INSTANCE=default-ubuntu-1604-3000-3-py2
|
# - env: INSTANCE=default-ubuntu-1604-3000-3-py2
|
||||||
# - env: INSTANCE=default-arch-base-latest-3000-3-py2
|
# - env: INSTANCE=default-arch-base-latest-3000-3-py2
|
||||||
@ -108,9 +98,6 @@ jobs:
|
|||||||
# - env: INSTANCE=default-centos-6-2019-2-py2
|
# - env: INSTANCE=default-centos-6-2019-2-py2
|
||||||
# - env: INSTANCE=default-amazonlinux-1-2019-2-py2
|
# - env: INSTANCE=default-amazonlinux-1-2019-2-py2
|
||||||
- env: INSTANCE=default-arch-base-latest-2019-2-py2
|
- env: INSTANCE=default-arch-base-latest-2019-2-py2
|
||||||
# REPO
|
|
||||||
- env: INSTANCE=repo-debian-10-3000-3-py3
|
|
||||||
- env: INSTANCE=repo-centos-7-3000-3-py3
|
|
||||||
|
|
||||||
## Define the release stage that runs `semantic-release`
|
## Define the release stage that runs `semantic-release`
|
||||||
- stage: 'release'
|
- stage: 'release'
|
||||||
|
@ -10,11 +10,9 @@ extends: default
|
|||||||
# 3. Any YAML files under directory `.kitchen/`, introduced during local testing
|
# 3. Any YAML files under directory `.kitchen/`, introduced during local testing
|
||||||
ignore: |
|
ignore: |
|
||||||
node_modules/
|
node_modules/
|
||||||
test/**/*.sls
|
test/**/states/**/*.sls
|
||||||
.kitchen/
|
.kitchen/
|
||||||
bin/kitchen
|
|
||||||
prometheus/osfamilymap.yaml
|
prometheus/osfamilymap.yaml
|
||||||
pillar.example
|
|
||||||
|
|
||||||
yaml-files:
|
yaml-files:
|
||||||
# Default settings
|
# Default settings
|
||||||
@ -24,6 +22,7 @@ yaml-files:
|
|||||||
- .yamllint
|
- .yamllint
|
||||||
# SaltStack Formulas additional settings
|
# SaltStack Formulas additional settings
|
||||||
- '*.example'
|
- '*.example'
|
||||||
|
- test/**/*.sls
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
empty-values:
|
empty-values:
|
||||||
@ -32,7 +31,7 @@ rules:
|
|||||||
line-length:
|
line-length:
|
||||||
# Increase from default of `80`
|
# Increase from default of `80`
|
||||||
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
|
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
|
||||||
max: 98
|
max: 88
|
||||||
octal-values:
|
octal-values:
|
||||||
forbid-implicit-octal: true
|
forbid-implicit-octal: true
|
||||||
forbid-explicit-octal: true
|
forbid-explicit-octal: true
|
||||||
|
10
kitchen.yml
10
kitchen.yml
@ -42,14 +42,6 @@ platforms:
|
|||||||
driver:
|
driver:
|
||||||
image: saltimages/salt-master-py3:amazonlinux-2
|
image: saltimages/salt-master-py3:amazonlinux-2
|
||||||
|
|
||||||
## SALT `3001`
|
|
||||||
- name: debian-10-3001-py3
|
|
||||||
driver:
|
|
||||||
image: saltimages/salt-3001-py3:debian-10
|
|
||||||
- name: debian-9-3001-py3
|
|
||||||
driver:
|
|
||||||
image: saltimages/salt-3001-py3:debian-9
|
|
||||||
|
|
||||||
## SALT `3000.3`
|
## SALT `3000.3`
|
||||||
- name: debian-10-3000-3-py3
|
- name: debian-10-3000-3-py3
|
||||||
driver:
|
driver:
|
||||||
@ -163,7 +155,6 @@ suites:
|
|||||||
state_top:
|
state_top:
|
||||||
base:
|
base:
|
||||||
'*':
|
'*':
|
||||||
# prometheus.clean
|
|
||||||
- prometheus
|
- prometheus
|
||||||
pillars:
|
pillars:
|
||||||
top.sls:
|
top.sls:
|
||||||
@ -182,7 +173,6 @@ suites:
|
|||||||
state_top:
|
state_top:
|
||||||
base:
|
base:
|
||||||
'*':
|
'*':
|
||||||
# prometheus.clean
|
|
||||||
- prometheus
|
- prometheus
|
||||||
pillars:
|
pillars:
|
||||||
top.sls:
|
top.sls:
|
||||||
|
@ -13,9 +13,6 @@ sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
|
|||||||
# Install `m2r`
|
# Install `m2r`
|
||||||
sudo -H pip install m2r
|
sudo -H pip install m2r
|
||||||
|
|
||||||
# working directory
|
|
||||||
MYPWD=$( pwd )
|
|
||||||
|
|
||||||
# Copy and then convert the `.md` docs
|
# Copy and then convert the `.md` docs
|
||||||
cp ./*.md docs/
|
cp ./*.md docs/
|
||||||
cd docs/ || exit
|
cd docs/ || exit
|
||||||
@ -30,4 +27,4 @@ sed -i -e '1,4s/-/=/g' CHANGELOG.rst
|
|||||||
# cat CHANGELOG.rst
|
# cat CHANGELOG.rst
|
||||||
|
|
||||||
# Return back to the main directory
|
# Return back to the main directory
|
||||||
cd "${MYPWD}" || exit
|
cd ..
|
||||||
|
@ -112,4 +112,4 @@
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
@ -63,7 +63,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof commit.hash === `string`) {
|
if (typeof commit.hash === `string`) {
|
||||||
commit.hash = commit.hash.substring(0, 7)
|
commit.shortHash = commit.hash.substring(0, 7)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof commit.subject === `string`) {
|
if (typeof commit.subject === `string`) {
|
||||||
|
@ -29,6 +29,7 @@ prometheus:
|
|||||||
smartctl: /usr/sbin/smartctl
|
smartctl: /usr/sbin/smartctl
|
||||||
|
|
||||||
pkg:
|
pkg:
|
||||||
|
# yamllint disable-line rule:braces rule:commas
|
||||||
use_upstream_repo: {{ false if grains.os_family|lower in ('debian',) else true }}
|
use_upstream_repo: {{ false if grains.os_family|lower in ('debian',) else true }}
|
||||||
use_upstream_archive: false
|
use_upstream_archive: false
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user