Skip to content

Commit 4944cdb

Browse files
Merge pull request #2 from myii/chore/standardise-structure
chore: standardise `semantic-release` implementation
2 parents 516b9ae + 8a2d1ea commit 4944cdb

9 files changed

Lines changed: 43 additions & 28 deletions

File tree

.gitlab-ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# `image`
1616
image_commitlint: &image_commitlint 'myii/ssf-commitlint:11'
1717
image_dindruby: &image_dindruby 'myii/ssf-dind-ruby:2.7.1-r3'
18-
image_dindrubybionic: &image_dindrubybionic 'myii/ssf-dind-ruby-bionic:2.7.5-1bbox1'
1918
image_precommit: &image_precommit
2019
name: 'myii/ssf-pre-commit:2.9.2'
2120
entrypoint: ['/bin/bash', '-c']

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,5 @@ repos:
6161
(?x)^(
6262
docs/CHANGELOG.rst|
6363
docs/TOFS_pattern.rst|
64-
docs/CONTRIBUTING_DOCS.rst|
65-
docs/index.rst|
6664
)$
6765
additional_dependencies: [pygments==2.9.0]

.travis.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,6 @@ jobs:
8383
## Define the rest of the matrix based on Kitchen testing
8484
# Make sure the instances listed below match up with
8585
# the `platforms` defined in `kitchen.yml`
86-
# NOTE: Please try to select up to six instances that add some meaningful
87-
# testing of the formula's behaviour. If possible, try to refrain from
88-
# the classical "chosing all the instances because I want to test on
89-
# another/all distro/s" trap: it will just add time to the testing (see
90-
# the discussion on #121). As an example, the set chosen below covers
91-
# the most used distros families, systemd and non-systemd and the latest
92-
# three supported Saltstack versions with python2 and 3.
93-
# As for `kitchen.yml`, that should still contain all of the platforms,
94-
# to allow for comprehensive local testing
95-
# Ref: https://github.com/saltstack-formulas/template-formula/issues/118
96-
# Ref: https://github.com/saltstack-formulas/template-formula/issues/121
9786
# - env: INSTANCE=default-debian-11-tiamat-py3
9887
# - env: INSTANCE=default-debian-10-tiamat-py3
9988
# - env: INSTANCE=default-debian-9-tiamat-py3
@@ -193,3 +182,15 @@ jobs:
193182
edge: true
194183
# Run `semantic-release`
195184
script: 'npx semantic-release@15.14'
185+
186+
# Notification options: `always`, `never` or `change`
187+
notifications:
188+
webhooks:
189+
if: 'repo = saltstack-formulas/caddy-formula'
190+
urls:
191+
- https://saltstack-formulas.zulipchat.com/api/v1/external/travis?api_key=HsIq3o5QmLxdnVCKF9is0FUIpkpAY79P&stream=CI&topic=saltstack-formulas%2Fcaddy-formula&ignore_pull_requests=true
192+
on_success: always # default: always
193+
on_failure: always # default: always
194+
on_start: always # default: never
195+
on_cancel: always # default: always
196+
on_error: always # default: always

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# SECTION: Owner(s) for everything in the repo, unless a later match takes precedence
44
# FILE PATTERN OWNER(S)
5-
* @NONE
5+
* @javierbertoli
66

77
# SECTION: Owner(s) for specific directories
88
# FILE PATTERN OWNER(S)

Gemfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
GIT
22
remote: https://gitlab.com/saltstack-formulas/infrastructure/inspec
3-
revision: ece601f5dd4bacf5d0dca49cd5c13896a7120255
3+
revision: 7efb86a1b5a2b79390bc1e9e364ee219f92a0057
44
branch: ssf
55
specs:
6-
inspec (5.15.0)
6+
inspec (5.16.2)
77
cookstyle
88
faraday_middleware (>= 0.12.2, < 1.1)
9-
inspec-core (= 5.15.0)
9+
inspec-core (= 5.16.2)
1010
mongo (= 2.13.2)
1111
progress_bar (~> 1.3.3)
1212
rake
1313
train (~> 3.0)
1414
train-aws (~> 0.2)
1515
train-habitat (~> 0.1)
1616
train-winrm (~> 0.2)
17-
inspec-core (5.15.0)
17+
inspec-core (5.16.2)
1818
addressable (~> 2.4)
1919
chef-telemetry (~> 1.0, >= 1.0.8)
2020
faraday (>= 0.9.0, < 1.5)
@@ -89,7 +89,7 @@ GEM
8989
aws-sdk-cloudformation (1.68.0)
9090
aws-sdk-core (~> 3, >= 3.127.0)
9191
aws-sigv4 (~> 1.1)
92-
aws-sdk-cloudfront (1.64.0)
92+
aws-sdk-cloudfront (1.65.0)
9393
aws-sdk-core (~> 3, >= 3.127.0)
9494
aws-sigv4 (~> 1.1)
9595
aws-sdk-cloudhsm (1.39.0)
@@ -128,7 +128,7 @@ GEM
128128
aws-sdk-configservice (1.77.0)
129129
aws-sdk-core (~> 3, >= 3.127.0)
130130
aws-sigv4 (~> 1.1)
131-
aws-sdk-core (3.130.2)
131+
aws-sdk-core (3.131.0)
132132
aws-eventstream (~> 1, >= 1.0.2)
133133
aws-partitions (~> 1, >= 1.525.0)
134134
aws-sigv4 (~> 1.1)
@@ -142,7 +142,7 @@ GEM
142142
aws-sdk-dynamodb (1.74.0)
143143
aws-sdk-core (~> 3, >= 3.127.0)
144144
aws-sigv4 (~> 1.1)
145-
aws-sdk-ec2 (1.312.0)
145+
aws-sdk-ec2 (1.315.0)
146146
aws-sdk-core (~> 3, >= 3.127.0)
147147
aws-sigv4 (~> 1.1)
148148
aws-sdk-ecr (1.56.0)
@@ -157,7 +157,7 @@ GEM
157157
aws-sdk-efs (1.54.0)
158158
aws-sdk-core (~> 3, >= 3.127.0)
159159
aws-sigv4 (~> 1.1)
160-
aws-sdk-eks (1.74.0)
160+
aws-sdk-eks (1.75.0)
161161
aws-sdk-core (~> 3, >= 3.127.0)
162162
aws-sigv4 (~> 1.1)
163163
aws-sdk-elasticache (1.77.0)
@@ -202,7 +202,7 @@ GEM
202202
aws-sdk-kms (1.56.0)
203203
aws-sdk-core (~> 3, >= 3.127.0)
204204
aws-sigv4 (~> 1.1)
205-
aws-sdk-lambda (1.83.0)
205+
aws-sdk-lambda (1.84.0)
206206
aws-sdk-core (~> 3, >= 3.127.0)
207207
aws-sigv4 (~> 1.1)
208208
aws-sdk-mq (1.40.0)
@@ -379,7 +379,7 @@ GEM
379379
concurrent-ruby (~> 1.0)
380380
inifile (3.0.0)
381381
jmespath (1.6.1)
382-
json (2.6.1)
382+
json (2.6.2)
383383
jwt (2.3.0)
384384
kitchen-inspec (2.5.2)
385385
hashie (>= 3.4, <= 5.0)
@@ -448,7 +448,7 @@ GEM
448448
rainbow (3.1.1)
449449
rake (13.0.6)
450450
regexp_parser (2.4.0)
451-
representable (3.1.1)
451+
representable (3.2.0)
452452
declarative (< 0.1.0)
453453
trailblazer-option (>= 0.1.1, < 0.2.0)
454454
uber (< 0.2.0)
@@ -479,7 +479,7 @@ GEM
479479
rubocop-ast (>= 1.15.1, < 2.0)
480480
ruby-progressbar (~> 1.7)
481481
unicode-display_width (>= 1.4.0, < 3.0)
482-
rubocop-ast (1.17.0)
482+
rubocop-ast (1.18.0)
483483
parser (>= 3.1.1.0)
484484
ruby-progressbar (1.11.0)
485485
ruby2_keywords (0.0.5)

test/integration/default/inspec.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,24 @@ name: default
55
title: caddy formula
66
maintainer: SaltStack Formulas
77
license: Apache-2.0
8-
# yamllint disable-line rule:line-length
98
summary: Verify that the caddy formula is setup and configured correctly
109
depends:
1110
- name: share
1211
path: test/integration/share
1312
supports:
1413
- platform-name: debian
1514
- platform-name: ubuntu
15+
- platform-name: centos
16+
- platform-name: fedora
17+
- platform-name: opensuse
18+
- platform-name: suse
19+
- platform-name: freebsd
20+
- platform-name: openbsd
21+
- platform-name: amazon
22+
- platform-name: oracle
23+
- platform-name: arch
24+
- platform-name: gentoo
25+
- platform-name: almalinux
26+
- platform-name: rocky
27+
- platform-name: mac_os_x
28+
- platform: windows

test/integration/share/inspec.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ supports:
2121
- platform-name: gentoo
2222
- platform-name: almalinux
2323
- platform-name: rocky
24+
- platform-name: mac_os_x
2425
- platform: windows

test/integration/share/libraries/system.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def build_platform_release
5757
'base-latest'
5858
when 'gentoo'
5959
"#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}"
60+
when 'mac_os_x'
61+
inspec.command('sw_vers -productVersion').stdout.to_s
6062
when 'opensuse'
6163
# rubocop:disable Style/NumericLiterals,Layout/LineLength
6264
inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release]

test/salt/pillar/top.sls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
base:
55
'*':
66
- default
7+
...

0 commit comments

Comments
 (0)