2019-07-15 00:21:24 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=yaml
|
|
|
|
---
|
2020-12-16 07:36:27 +01:00
|
|
|
################################################################################
|
|
|
|
# NOTE: This file is UNMAINTAINED; it is provided for references purposes only.
|
|
|
|
# No guarantees are tendered that this structure will work after 2020.
|
|
|
|
################################################################################
|
|
|
|
# * https://en.wikipedia.org/wiki/Travis_CI:
|
|
|
|
# - "... free open-source plans were removed in [sic] the end of 2020"
|
|
|
|
# - https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
|
|
|
|
# - https://ropensci.org/technotes/2020/11/19/moving-away-travis/
|
|
|
|
################################################################################
|
2019-10-09 15:45:57 +02:00
|
|
|
## Machine config
|
2019-11-16 21:08:17 +01:00
|
|
|
os: 'linux'
|
|
|
|
arch: 'amd64'
|
|
|
|
dist: 'bionic'
|
2019-11-13 17:50:32 +01:00
|
|
|
version: '~> 1.0'
|
2018-03-17 21:25:25 +01:00
|
|
|
|
2019-10-09 15:45:57 +02:00
|
|
|
## Language and cache config
|
2019-11-16 21:08:17 +01:00
|
|
|
language: 'ruby'
|
|
|
|
cache: 'bundler'
|
|
|
|
|
|
|
|
## Services config
|
|
|
|
services:
|
|
|
|
- docker
|
2019-04-12 17:34:35 +02:00
|
|
|
|
2019-10-09 15:45:57 +02:00
|
|
|
## Script to run for the test stage
|
2019-04-12 22:08:25 +02:00
|
|
|
script:
|
2019-10-09 15:45:57 +02:00
|
|
|
- bin/kitchen verify "${INSTANCE}"
|
2019-04-24 22:49:45 +02:00
|
|
|
|
2019-10-09 15:45:57 +02:00
|
|
|
## Stages and jobs matrix
|
|
|
|
stages:
|
|
|
|
- test
|
2020-12-16 07:36:27 +01:00
|
|
|
# # As part of the switch away from Travis CI, ensure that the `release` stage
|
|
|
|
# # is not run inadvertently
|
|
|
|
# - name: 'release'
|
|
|
|
# if: 'branch = master AND type != pull_request'
|
2019-04-24 22:49:45 +02:00
|
|
|
jobs:
|
|
|
|
include:
|
2019-10-09 15:45:57 +02:00
|
|
|
## Define the test stage that runs the linters (and testing matrix, if applicable)
|
|
|
|
|
2021-04-03 10:23:08 +02:00
|
|
|
# Run all of the linters in a single job
|
2019-11-16 21:08:17 +01:00
|
|
|
- language: 'node_js'
|
|
|
|
node_js: 'lts/*'
|
|
|
|
env: 'Lint'
|
2021-04-03 10:23:08 +02:00
|
|
|
name: 'Lint: salt-lint, yamllint, rubocop, shellcheck & commitlint'
|
2019-11-16 21:08:17 +01:00
|
|
|
before_install: 'skip'
|
2019-04-24 22:49:45 +02:00
|
|
|
script:
|
2019-10-09 15:45:57 +02:00
|
|
|
# Install and run `salt-lint`
|
|
|
|
- pip install --user salt-lint
|
2019-11-27 22:59:32 +01:00
|
|
|
- git ls-files -- '*.sls' '*.jinja' '*.j2' '*.tmpl' '*.tst'
|
2019-11-27 22:00:28 +01:00
|
|
|
| xargs salt-lint
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
nginx-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
pillar.example
5:1 warning missing document start "---" (document-start)
6:89 error line too long (110 > 88 characters) (line-length)
7:89 error line too long (99 > 88 characters) (line-length)
19:89 error line too long (132 > 88 characters) (line-length)
35:25 warning truthy value should be one of [false, true] (truthy)
36:89 error line too long (106 > 88 characters) (line-length)
40:89 error line too long (115 > 88 characters) (line-length)
43:16 warning truthy value should be one of [false, true] (truthy)
44:89 error line too long (105 > 88 characters) (line-length)
48:16 warning truthy value should be one of [false, true] (truthy)
54:14 warning too few spaces before comment (comments)
57:13 warning truthy value should be one of [false, true] (truthy)
57:18 warning too few spaces before comment (comments)
58:14 warning too few spaces before comment (comments)
60:5 warning missing starting space in comment (comments)
60:89 error line too long (96 > 88 characters) (line-length)
61:89 error line too long (90 > 88 characters) (line-length)
62:89 error line too long (90 > 88 characters) (line-length)
63:89 error line too long (94 > 88 characters) (line-length)
64:5 warning missing starting space in comment (comments)
64:89 error line too long (96 > 88 characters) (line-length)
68:9 error wrong indentation: expected 10 but found 8 (indentation)
76:9 error wrong indentation: expected 10 but found 8 (indentation)
86:9 error wrong indentation: expected 10 but found 8 (indentation)
90:14 warning too few spaces before comment (comments)
90:89 error line too long (104 > 88 characters) (line-length)
92:6 warning missing starting space in comment (comments)
92:89 error line too long (106 > 88 characters) (line-length)
94:89 error line too long (104 > 88 characters) (line-length)
97:6 warning missing starting space in comment (comments)
97:89 error line too long (106 > 88 characters) (line-length)
100:62 warning too few spaces before comment (comments)
100:89 error line too long (121 > 88 characters) (line-length)
101:62 warning comment not indented like content (comments-indentation)
101:89 error line too long (116 > 88 characters) (line-length)
102:89 error line too long (112 > 88 characters) (line-length)
103:89 error line too long (99 > 88 characters) (line-length)
105:89 error line too long (124 > 88 characters) (line-length)
106:8 warning missing starting space in comment (comments)
106:89 error line too long (117 > 88 characters) (line-length)
112:89 error line too long (97 > 88 characters) (line-length)
120:31 warning missing starting space in comment (comments)
123:89 error line too long (95 > 88 characters) (line-length)
127:13 error wrong indentation: expected 14 but found 12 (indentation)
151:33 warning too few spaces before comment (comments)
151:89 error line too long (94 > 88 characters) (line-length)
152:22 warning too few spaces before comment (comments)
152:89 error line too long (90 > 88 characters) (line-length)
153:21 warning too few spaces before comment (comments)
153:89 error line too long (101 > 88 characters) (line-length)
154:22 warning too few spaces before comment (comments)
155:18 warning too few spaces before comment (comments)
155:89 error line too long (103 > 88 characters) (line-length)
163:89 error line too long (100 > 88 characters) (line-length)
164:89 error line too long (106 > 88 characters) (line-length)
165:18 warning truthy value should be one of [false, true] (truthy)
167:89 error line too long (109 > 88 characters) (line-length)
170:10 warning missing starting space in comment (comments)
172:10 warning missing starting space in comment (comments)
172:89 error line too long (120 > 88 characters) (line-length)
173:10 warning missing starting space in comment (comments)
173:89 error line too long (118 > 88 characters) (line-length)
174:89 error line too long (120 > 88 characters) (line-length)
175:20 warning truthy value should be one of [false, true] (truthy)
175:89 error line too long (102 > 88 characters) (line-length)
177:89 error line too long (100 > 88 characters) (line-length)
178:89 error line too long (101 > 88 characters) (line-length)
182:13 error wrong indentation: expected 14 but found 12 (indentation)
184:15 error wrong indentation: expected 16 but found 14 (indentation)
186:15 error wrong indentation: expected 16 but found 14 (indentation)
189:15 error wrong indentation: expected 16 but found 14 (indentation)
193:9 warning comment not indented like content (comments-indentation)
196:13 error wrong indentation: expected 14 but found 12 (indentation)
198:15 error wrong indentation: expected 16 but found 14 (indentation)
202:15 error wrong indentation: expected 16 but found 14 (indentation)
206:9 warning comment not indented like content (comments-indentation)
218:16 warning too few spaces before comment (comments)
218:89 error line too long (96 > 88 characters) (line-length)
219:18 warning truthy value should be one of [false, true] (truthy)
223:57 warning too few spaces before comment (comments)
223:89 error line too long (111 > 88 characters) (line-length)
224:57 warning comment not indented like content (comments-indentation)
224:89 error line too long (118 > 88 characters) (line-length)
226:89 error line too long (90 > 88 characters) (line-length)
236:18 warning truthy value should be one of [false, true] (truthy)
245:89 error line too long (108 > 88 characters) (line-length)
252:89 error line too long (104 > 88 characters) (line-length)
305:89 error line too long (115 > 88 characters) (line-length)
306:32 error trailing spaces (trailing-spaces)
test/salt/default/pillar/nginx.sls
1:1 error too many blank lines (1 > 0) (empty-lines)
7:1 warning missing document start "---" (document-start)
11:9 error wrong indentation: expected 10 but found 8 (indentation)
23:18 warning truthy value should be one of [false, true] (truthy)
24:18 warning truthy value should be one of [false, true] (truthy)
28:18 warning truthy value should be one of [false, true] (truthy)
31:13 error wrong indentation: expected 14 but found 12 (indentation)
33:15 error wrong indentation: expected 16 but found 14 (indentation)
36:15 error wrong indentation: expected 16 but found 14 (indentation)
38:1 error too many blank lines (1 > 0) (empty-lines)
```
2019-08-06 21:57:39 +02:00
|
|
|
# Install and run `yamllint`
|
2019-09-10 06:57:00 +02:00
|
|
|
# Need at least `v1.17.0` for the `yaml-files` setting
|
|
|
|
- pip install --user yamllint>=1.17.0
|
|
|
|
- yamllint -s .
|
2021-04-03 10:23:08 +02:00
|
|
|
# Install and run `rubocop`
|
|
|
|
- gem install rubocop
|
|
|
|
- rubocop -d
|
2019-11-27 22:00:28 +01:00
|
|
|
# Run `shellcheck` (already pre-installed in Travis)
|
|
|
|
- shellcheck --version
|
2019-11-27 22:59:32 +01:00
|
|
|
- git ls-files -- '*.sh' '*.bash' '*.ksh'
|
2019-11-27 22:00:28 +01:00
|
|
|
| xargs shellcheck
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix errors shown below:
```bash
nginx-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
pillar.example
5:1 warning missing document start "---" (document-start)
6:89 error line too long (110 > 88 characters) (line-length)
7:89 error line too long (99 > 88 characters) (line-length)
19:89 error line too long (132 > 88 characters) (line-length)
35:25 warning truthy value should be one of [false, true] (truthy)
36:89 error line too long (106 > 88 characters) (line-length)
40:89 error line too long (115 > 88 characters) (line-length)
43:16 warning truthy value should be one of [false, true] (truthy)
44:89 error line too long (105 > 88 characters) (line-length)
48:16 warning truthy value should be one of [false, true] (truthy)
54:14 warning too few spaces before comment (comments)
57:13 warning truthy value should be one of [false, true] (truthy)
57:18 warning too few spaces before comment (comments)
58:14 warning too few spaces before comment (comments)
60:5 warning missing starting space in comment (comments)
60:89 error line too long (96 > 88 characters) (line-length)
61:89 error line too long (90 > 88 characters) (line-length)
62:89 error line too long (90 > 88 characters) (line-length)
63:89 error line too long (94 > 88 characters) (line-length)
64:5 warning missing starting space in comment (comments)
64:89 error line too long (96 > 88 characters) (line-length)
68:9 error wrong indentation: expected 10 but found 8 (indentation)
76:9 error wrong indentation: expected 10 but found 8 (indentation)
86:9 error wrong indentation: expected 10 but found 8 (indentation)
90:14 warning too few spaces before comment (comments)
90:89 error line too long (104 > 88 characters) (line-length)
92:6 warning missing starting space in comment (comments)
92:89 error line too long (106 > 88 characters) (line-length)
94:89 error line too long (104 > 88 characters) (line-length)
97:6 warning missing starting space in comment (comments)
97:89 error line too long (106 > 88 characters) (line-length)
100:62 warning too few spaces before comment (comments)
100:89 error line too long (121 > 88 characters) (line-length)
101:62 warning comment not indented like content (comments-indentation)
101:89 error line too long (116 > 88 characters) (line-length)
102:89 error line too long (112 > 88 characters) (line-length)
103:89 error line too long (99 > 88 characters) (line-length)
105:89 error line too long (124 > 88 characters) (line-length)
106:8 warning missing starting space in comment (comments)
106:89 error line too long (117 > 88 characters) (line-length)
112:89 error line too long (97 > 88 characters) (line-length)
120:31 warning missing starting space in comment (comments)
123:89 error line too long (95 > 88 characters) (line-length)
127:13 error wrong indentation: expected 14 but found 12 (indentation)
151:33 warning too few spaces before comment (comments)
151:89 error line too long (94 > 88 characters) (line-length)
152:22 warning too few spaces before comment (comments)
152:89 error line too long (90 > 88 characters) (line-length)
153:21 warning too few spaces before comment (comments)
153:89 error line too long (101 > 88 characters) (line-length)
154:22 warning too few spaces before comment (comments)
155:18 warning too few spaces before comment (comments)
155:89 error line too long (103 > 88 characters) (line-length)
163:89 error line too long (100 > 88 characters) (line-length)
164:89 error line too long (106 > 88 characters) (line-length)
165:18 warning truthy value should be one of [false, true] (truthy)
167:89 error line too long (109 > 88 characters) (line-length)
170:10 warning missing starting space in comment (comments)
172:10 warning missing starting space in comment (comments)
172:89 error line too long (120 > 88 characters) (line-length)
173:10 warning missing starting space in comment (comments)
173:89 error line too long (118 > 88 characters) (line-length)
174:89 error line too long (120 > 88 characters) (line-length)
175:20 warning truthy value should be one of [false, true] (truthy)
175:89 error line too long (102 > 88 characters) (line-length)
177:89 error line too long (100 > 88 characters) (line-length)
178:89 error line too long (101 > 88 characters) (line-length)
182:13 error wrong indentation: expected 14 but found 12 (indentation)
184:15 error wrong indentation: expected 16 but found 14 (indentation)
186:15 error wrong indentation: expected 16 but found 14 (indentation)
189:15 error wrong indentation: expected 16 but found 14 (indentation)
193:9 warning comment not indented like content (comments-indentation)
196:13 error wrong indentation: expected 14 but found 12 (indentation)
198:15 error wrong indentation: expected 16 but found 14 (indentation)
202:15 error wrong indentation: expected 16 but found 14 (indentation)
206:9 warning comment not indented like content (comments-indentation)
218:16 warning too few spaces before comment (comments)
218:89 error line too long (96 > 88 characters) (line-length)
219:18 warning truthy value should be one of [false, true] (truthy)
223:57 warning too few spaces before comment (comments)
223:89 error line too long (111 > 88 characters) (line-length)
224:57 warning comment not indented like content (comments-indentation)
224:89 error line too long (118 > 88 characters) (line-length)
226:89 error line too long (90 > 88 characters) (line-length)
236:18 warning truthy value should be one of [false, true] (truthy)
245:89 error line too long (108 > 88 characters) (line-length)
252:89 error line too long (104 > 88 characters) (line-length)
305:89 error line too long (115 > 88 characters) (line-length)
306:32 error trailing spaces (trailing-spaces)
test/salt/default/pillar/nginx.sls
1:1 error too many blank lines (1 > 0) (empty-lines)
7:1 warning missing document start "---" (document-start)
11:9 error wrong indentation: expected 10 but found 8 (indentation)
23:18 warning truthy value should be one of [false, true] (truthy)
24:18 warning truthy value should be one of [false, true] (truthy)
28:18 warning truthy value should be one of [false, true] (truthy)
31:13 error wrong indentation: expected 14 but found 12 (indentation)
33:15 error wrong indentation: expected 16 but found 14 (indentation)
36:15 error wrong indentation: expected 16 but found 14 (indentation)
38:1 error too many blank lines (1 > 0) (empty-lines)
```
2019-08-06 21:57:39 +02:00
|
|
|
# Install and run `commitlint`
|
2019-10-31 11:33:01 +01:00
|
|
|
- npm i -D @commitlint/config-conventional
|
|
|
|
@commitlint/travis-cli
|
2019-04-24 22:49:45 +02:00
|
|
|
- commitlint-travis
|
2019-10-09 15:45:57 +02:00
|
|
|
|
2020-10-03 11:40:33 +02:00
|
|
|
# Run `pre-commit` linters in a single job
|
|
|
|
- language: 'python'
|
|
|
|
env: 'Lint_pre-commit'
|
|
|
|
name: 'Lint: pre-commit'
|
|
|
|
before_install: 'skip'
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pre-commit
|
|
|
|
script:
|
|
|
|
# Install and run `pre-commit`
|
|
|
|
- pip install pre-commit==2.7.1
|
|
|
|
- pre-commit run --all-files --color always --verbose
|
|
|
|
- pre-commit run --color always --hook-stage manual --verbose commitlint-travis
|
|
|
|
|
2019-10-09 15:45:57 +02:00
|
|
|
## Define the rest of the matrix based on Kitchen testing
|
|
|
|
# Make sure the instances listed below match up with
|
|
|
|
# the `platforms` defined in `kitchen.yml`
|
2021-02-14 09:06:26 +01:00
|
|
|
# - env: INSTANCE=default-debian-10-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-debian-9-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-2004-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-1804-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-centos-8-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-centos-7-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-amazonlinux-2-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-8-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-7-tiamat-py3
|
2021-07-02 01:04:51 +02:00
|
|
|
# - env: INSTANCE=default-almalinux-8-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-rockylinux-8-tiamat-py3
|
2021-03-23 12:24:29 +01:00
|
|
|
# - env: INSTANCE=default-debian-10-master-py3
|
|
|
|
# - env: INSTANCE=passenger-debian-10-master-py3
|
|
|
|
- env: INSTANCE=debian-10-master-py3
|
|
|
|
# - env: INSTANCE=default-debian-9-master-py3
|
|
|
|
# - env: INSTANCE=passenger-debian-9-master-py3
|
|
|
|
- env: INSTANCE=debian-9-master-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-2004-master-py3
|
|
|
|
# - env: INSTANCE=passenger-ubuntu-2004-master-py3
|
|
|
|
- env: INSTANCE=ubuntu-2004-master-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-1804-master-py3
|
|
|
|
# - env: INSTANCE=passenger-ubuntu-1804-master-py3
|
|
|
|
- env: INSTANCE=ubuntu-1804-master-py3
|
|
|
|
# - env: INSTANCE=default-centos-8-master-py3
|
|
|
|
# - env: INSTANCE=passenger-centos-8-master-py3
|
|
|
|
- env: INSTANCE=centos-8-master-py3
|
2021-07-17 20:53:17 +02:00
|
|
|
# - env: INSTANCE=default-centos-7-master-py3
|
2021-03-23 12:24:29 +01:00
|
|
|
# - env: INSTANCE=passenger-centos-7-master-py3
|
2021-07-17 20:53:17 +02:00
|
|
|
- env: INSTANCE=centos-7-master-py3
|
2021-05-09 23:31:44 +02:00
|
|
|
- env: INSTANCE=default-fedora-34-master-py3
|
|
|
|
# - env: INSTANCE=fedora-34-master-py3
|
2021-02-14 09:06:26 +01:00
|
|
|
- env: INSTANCE=default-fedora-33-master-py3
|
2021-03-23 12:24:29 +01:00
|
|
|
# - env: INSTANCE=fedora-33-master-py3
|
2021-07-02 01:04:51 +02:00
|
|
|
- env: INSTANCE=default-opensuse-leap-153-master-py3
|
|
|
|
# - env: INSTANCE=opensuse-leap-153-master-py3
|
2021-02-14 09:06:26 +01:00
|
|
|
- env: INSTANCE=default-opensuse-leap-152-master-py3
|
2021-03-23 12:24:29 +01:00
|
|
|
# - env: INSTANCE=opensuse-leap-152-master-py3
|
2021-02-14 09:06:26 +01:00
|
|
|
- env: INSTANCE=default-opensuse-tmbl-latest-master-py3
|
2021-03-23 12:24:29 +01:00
|
|
|
# - env: INSTANCE=opensuse-tmbl-latest-master-py3
|
2021-02-14 09:06:26 +01:00
|
|
|
- env: INSTANCE=default-amazonlinux-2-master-py3
|
2021-03-23 12:24:29 +01:00
|
|
|
# - env: INSTANCE=amazonlinux-2-master-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-8-master-py3
|
|
|
|
# - env: INSTANCE=passenger-oraclelinux-8-master-py3
|
|
|
|
- env: INSTANCE=oraclelinux-8-master-py3
|
2021-02-14 09:06:26 +01:00
|
|
|
- env: INSTANCE=default-oraclelinux-7-master-py3
|
2021-03-23 12:24:29 +01:00
|
|
|
# - env: INSTANCE=oraclelinux-7-master-py3
|
2021-05-09 23:31:44 +02:00
|
|
|
- env: INSTANCE=default-arch-base-latest-master-py3
|
|
|
|
# - env: INSTANCE=arch-base-latest-master-py3
|
2021-02-14 09:06:26 +01:00
|
|
|
# - env: INSTANCE=default-gentoo-stage3-latest-master-py3
|
2021-03-23 12:24:29 +01:00
|
|
|
# - env: INSTANCE=gentoo-stage3-latest-master-py3
|
2021-02-14 09:06:26 +01:00
|
|
|
- env: INSTANCE=default-gentoo-stage3-systemd-master-py3
|
2021-03-23 12:24:29 +01:00
|
|
|
# - env: INSTANCE=gentoo-stage3-systemd-master-py3
|
2021-07-02 01:04:51 +02:00
|
|
|
# - env: INSTANCE=default-almalinux-8-master-py3
|
|
|
|
# - env: INSTANCE=passenger-almalinux-8-master-py3
|
|
|
|
- env: INSTANCE=almalinux-8-master-py3
|
|
|
|
# - env: INSTANCE=default-rockylinux-8-master-py3
|
|
|
|
# - env: INSTANCE=passenger-rockylinux-8-master-py3
|
|
|
|
- env: INSTANCE=rockylinux-8-master-py3
|
|
|
|
# - env: INSTANCE=default-debian-10-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-debian-9-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-2004-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-1804-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-centos-8-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-centos-7-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-fedora-34-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-fedora-33-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-opensuse-leap-153-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-opensuse-leap-152-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-opensuse-tmbl-latest-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-amazonlinux-2-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-8-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-7-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-arch-base-latest-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-gentoo-stage3-latest-3003-1-py3
|
|
|
|
# - env: INSTANCE=default-gentoo-stage3-systemd-3003-1-py3
|
2021-05-09 23:31:44 +02:00
|
|
|
# - env: INSTANCE=default-debian-10-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-debian-9-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-2004-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-1804-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-centos-8-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-centos-7-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-fedora-34-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-fedora-33-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-amazonlinux-2-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-8-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-7-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-arch-base-latest-3002-6-py3
|
2021-07-02 01:04:51 +02:00
|
|
|
# - env: INSTANCE=default-gentoo-stage3-latest-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-gentoo-stage3-systemd-3002-6-py3
|
|
|
|
# - env: INSTANCE=default-opensuse-leap-153-3002-2-py3
|
2021-02-14 09:06:26 +01:00
|
|
|
# - env: INSTANCE=default-opensuse-leap-152-3002-2-py3
|
|
|
|
# - env: INSTANCE=default-opensuse-tmbl-latest-3002-2-py3
|
2021-05-09 23:31:44 +02:00
|
|
|
# - env: INSTANCE=default-debian-10-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-debian-9-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-2004-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-1804-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-centos-8-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-centos-7-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-fedora-34-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-fedora-33-3001-7-py3
|
2021-07-02 01:04:51 +02:00
|
|
|
# - env: INSTANCE=default-opensuse-leap-153-3001-7-py3
|
2021-05-09 23:31:44 +02:00
|
|
|
# - env: INSTANCE=default-opensuse-leap-152-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-opensuse-tmbl-latest-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-amazonlinux-2-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-8-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-7-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-arch-base-latest-3001-7-py3
|
2021-07-02 01:04:51 +02:00
|
|
|
# - env: INSTANCE=default-gentoo-stage3-latest-3001-7-py3
|
|
|
|
# - env: INSTANCE=default-gentoo-stage3-systemd-3001-7-py3
|
2021-05-09 23:31:44 +02:00
|
|
|
# - env: INSTANCE=default-debian-10-3000-9-py3
|
|
|
|
# - env: INSTANCE=default-debian-9-3000-9-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-1804-3000-9-py3
|
|
|
|
# - env: INSTANCE=default-centos-8-3000-9-py3
|
|
|
|
# - env: INSTANCE=default-centos-7-3000-9-py3
|
2021-07-02 01:04:51 +02:00
|
|
|
# - env: INSTANCE=default-opensuse-leap-153-3000-9-py3
|
2021-05-09 23:31:44 +02:00
|
|
|
# - env: INSTANCE=default-opensuse-leap-152-3000-9-py3
|
|
|
|
# - env: INSTANCE=default-amazonlinux-2-3000-9-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-8-3000-9-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-7-3000-9-py3
|
2021-07-02 01:04:51 +02:00
|
|
|
# - env: INSTANCE=default-gentoo-stage3-latest-3000-9-py3
|
|
|
|
# - env: INSTANCE=default-gentoo-stage3-systemd-3000-9-py3
|
2021-05-09 23:31:44 +02:00
|
|
|
# - env: INSTANCE=default-ubuntu-1804-3000-9-py2
|
|
|
|
# - env: INSTANCE=default-arch-base-latest-3000-9-py2
|
2019-10-09 15:45:57 +02:00
|
|
|
|
|
|
|
## Define the release stage that runs `semantic-release`
|
2019-11-16 21:08:17 +01:00
|
|
|
- stage: 'release'
|
|
|
|
language: 'node_js'
|
|
|
|
node_js: 'lts/*'
|
|
|
|
env: 'Release'
|
2019-10-09 15:45:57 +02:00
|
|
|
name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
|
2019-11-16 21:08:17 +01:00
|
|
|
before_install: 'skip'
|
2019-04-24 22:49:45 +02:00
|
|
|
script:
|
|
|
|
# Update `AUTHORS.md`
|
|
|
|
- export MAINTAINER_TOKEN=${GH_TOKEN}
|
|
|
|
- go get github.com/myii/maintainer
|
|
|
|
- maintainer contributor
|
|
|
|
|
|
|
|
# Install all dependencies required for `semantic-release`
|
2019-10-31 11:33:01 +01:00
|
|
|
- npm i -D @semantic-release/changelog@3
|
|
|
|
@semantic-release/exec@3
|
|
|
|
@semantic-release/git@7
|
2019-04-24 22:49:45 +02:00
|
|
|
deploy:
|
2019-11-16 21:08:17 +01:00
|
|
|
provider: 'script'
|
2019-11-20 17:35:09 +01:00
|
|
|
# Opt-in to `dpl v2` to complete the Travis build config validation (beta)
|
|
|
|
# * https://docs.travis-ci.com/user/build-config-validation
|
|
|
|
# Deprecated `skip_cleanup` can now be avoided, `cleanup: false` is by default
|
|
|
|
edge: true
|
2019-11-16 21:08:17 +01:00
|
|
|
# Run `semantic-release`
|
2019-12-22 01:59:42 +01:00
|
|
|
script: 'npx semantic-release@15.14'
|
2020-05-21 21:08:37 +02:00
|
|
|
|
|
|
|
# Notification options: `always`, `never` or `change`
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
if: 'repo = saltstack-formulas/nginx-formula'
|
|
|
|
urls:
|
|
|
|
- https://saltstack-formulas.zulipchat.com/api/v1/external/travis?api_key=HsIq3o5QmLxdnVCKF9is0FUIpkpAY79P&stream=CI&topic=saltstack-formulas%2Fnginx-formula&ignore_pull_requests=true
|
|
|
|
on_success: always # default: always
|
|
|
|
on_failure: always # default: always
|
|
|
|
on_start: always # default: never
|
|
|
|
on_cancel: always # default: always
|
|
|
|
on_error: always # default: always
|