2019-07-30 09:04:52 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=yaml
|
|
|
|
---
|
2020-12-16 06:27:59 +00: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 04:15:41 +01:00
|
|
|
## Machine config
|
2019-11-16 20:09:36 +00:00
|
|
|
os: 'linux'
|
|
|
|
arch: 'amd64'
|
|
|
|
dist: 'bionic'
|
2019-11-13 16:51:49 +00:00
|
|
|
version: '~> 1.0'
|
2018-05-26 18:54:26 -03:00
|
|
|
|
2019-10-09 04:15:41 +01:00
|
|
|
## Language and cache config
|
2019-11-16 20:09:36 +00:00
|
|
|
language: 'ruby'
|
|
|
|
cache: 'bundler'
|
|
|
|
|
|
|
|
## Services config
|
|
|
|
services:
|
|
|
|
- docker
|
2018-09-10 08:35:02 -03:00
|
|
|
|
2019-10-09 04:15:41 +01:00
|
|
|
## Script to run for the test stage
|
2018-09-10 08:35:02 -03:00
|
|
|
script:
|
2019-10-09 04:15:41 +01:00
|
|
|
- bin/kitchen verify "${INSTANCE}"
|
2018-09-10 08:35:02 -03:00
|
|
|
|
2019-10-09 04:15:41 +01:00
|
|
|
## Stages and jobs matrix
|
|
|
|
stages:
|
|
|
|
- test
|
2020-12-16 06:27:59 +00: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-05-18 17:52:10 +02:00
|
|
|
jobs:
|
2019-10-09 04:15:41 +01:00
|
|
|
allow_failures:
|
|
|
|
- env: Lint_rubocop
|
|
|
|
fast_finish: true
|
2019-05-18 17:52:10 +02:00
|
|
|
include:
|
2019-10-09 04:15:41 +01:00
|
|
|
## Define the test stage that runs the linters (and testing matrix, if applicable)
|
|
|
|
|
|
|
|
# Run all of the linters in a single job (except `rubocop`)
|
2019-11-16 20:09:36 +00:00
|
|
|
- language: 'node_js'
|
|
|
|
node_js: 'lts/*'
|
|
|
|
env: 'Lint'
|
2019-11-27 21:02:57 +00:00
|
|
|
name: 'Lint: salt-lint, yamllint, shellcheck & commitlint'
|
2019-11-16 20:09:36 +00:00
|
|
|
before_install: 'skip'
|
2019-05-18 17:52:10 +02:00
|
|
|
script:
|
2019-10-09 04:15:41 +01:00
|
|
|
# Install and run `salt-lint`
|
|
|
|
- pip install --user salt-lint
|
2019-11-27 22:01:03 +00:00
|
|
|
- git ls-files -- '*.sls' '*.jinja' '*.j2' '*.tmpl' '*.tst'
|
2019-11-27 21:02:57 +00:00
|
|
|
| xargs salt-lint
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix (or ignore) errors shown below:
```bash
bind-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
pillar.example
1:1 warning comment not indented like content (comments-indentation)
1:89 error line too long (95 > 88 characters) (line-length)
2:1 warning missing document start "---" (document-start)
2:10 error wrong indentation: expected 0 but found 9 (indentation)
2:89 error line too long (103 > 88 characters) (line-length)
8:1 error syntax error: expected '<document start>', but found '<block mapping start>'
14:89 error line too long (94 > 88 characters) (line-length)
15:51 warning comment not indented like content (comments-indentation)
19:1 error duplication of key "bind" in mapping (key-duplicates)
21:89 error line too long (93 > 88 characters) (line-length)
23:89 error line too long (102 > 88 characters) (line-length)
27:89 error line too long (96 > 88 characters) (line-length)
32:89 error line too long (143 > 88 characters) (line-length)
33:89 error line too long (134 > 88 characters) (line-length)
35:24 error trailing spaces (trailing-spaces)
36:89 error line too long (91 > 88 characters) (line-length)
37:89 error line too long (93 > 88 characters) (line-length)
38:23 warning truthy value should be one of [false, true] (truthy)
39:27 warning truthy value should be one of [false, true] (truthy)
40:27 warning truthy value should be one of [false, true] (truthy)
44:23 warning truthy value should be one of [false, true] (truthy)
45:27 warning truthy value should be one of [false, true] (truthy)
46:27 warning truthy value should be one of [false, true] (truthy)
50:23 warning truthy value should be one of [false, true] (truthy)
51:27 warning truthy value should be one of [false, true] (truthy)
52:27 warning truthy value should be one of [false, true] (truthy)
55:23 warning truthy value should be one of [false, true] (truthy)
56:27 warning truthy value should be one of [false, true] (truthy)
57:27 warning truthy value should be one of [false, true] (truthy)
62:23 warning truthy value should be one of [false, true] (truthy)
63:27 warning truthy value should be one of [false, true] (truthy)
64:27 warning truthy value should be one of [false, true] (truthy)
89:89 error line too long (91 > 88 characters) (line-length)
90:1 warning comment not indented like content (comments-indentation)
97:1 warning comment not indented like content (comments-indentation)
98:89 error line too long (92 > 88 characters) (line-length)
99:51 warning comment not indented like content (comments-indentation)
99:89 error line too long (96 > 88 characters) (line-length)
102:1 warning comment not indented like content (comments-indentation)
102:35 error trailing spaces (trailing-spaces)
103:20 warning truthy value should be one of [false, true] (truthy)
103:89 error line too long (99 > 88 characters) (line-length)
104:51 warning comment not indented like content (comments-indentation)
106:89 error line too long (99 > 88 characters) (line-length)
109:40 error trailing spaces (trailing-spaces)
110:1 error duplication of key "bind" in mapping (key-duplicates)
113:89 error line too long (115 > 88 characters) (line-length)
115:89 error line too long (110 > 88 characters) (line-length)
116:13 error trailing spaces (trailing-spaces)
129:89 error line too long (120 > 88 characters) (line-length)
130:11 error trailing spaces (trailing-spaces)
150:81 error trailing spaces (trailing-spaces)
167:89 error line too long (118 > 88 characters) (line-length)
168:89 error line too long (101 > 88 characters) (line-length)
169:89 error line too long (103 > 88 characters) (line-length)
169:103 error trailing spaces (trailing-spaces)
170:89 error line too long (107 > 88 characters) (line-length)
170:107 error trailing spaces (trailing-spaces)
171:54 warning comment not indented like content (comments-indentation)
171:89 error line too long (120 > 88 characters) (line-length)
172:15 warning truthy value should be one of [false, true] (truthy)
172:89 error line too long (104 > 88 characters) (line-length)
174:21 error trailing spaces (trailing-spaces)
177:15 warning truthy value should be one of [false, true] (truthy)
178:19 error trailing spaces (trailing-spaces)
180:22 error trailing spaces (trailing-spaces)
186:24 warning truthy value should be one of [false, true] (truthy)
186:89 error line too long (124 > 88 characters) (line-length)
191:15 warning truthy value should be one of [false, true] (truthy)
193:89 error line too long (93 > 88 characters) (line-length)
193:93 error trailing spaces (trailing-spaces)
195:89 error line too long (101 > 88 characters) (line-length)
196:89 error line too long (104 > 88 characters) (line-length)
196:104 error trailing spaces (trailing-spaces)
197:15 warning truthy value should be one of [false, true] (truthy)
200:76 error trailing spaces (trailing-spaces)
206:89 error line too long (94 > 88 characters) (line-length)
208:89 error line too long (94 > 88 characters) (line-length)
209:89 error line too long (98 > 88 characters) (line-length)
213:36 error trailing spaces (trailing-spaces)
216:1 error duplication of key "bind" in mapping (key-duplicates)
218:25 warning truthy value should be one of [false, true] (truthy)
221:1 error too many blank lines (3 > 2) (empty-lines)
223:1 error duplication of key "bind" in mapping (key-duplicates)
231:15 warning truthy value should be one of [false, true] (truthy)
231:89 error line too long (98 > 88 characters) (line-length)
232:89 error line too long (94 > 88 characters) (line-length)
234:89 error line too long (98 > 88 characters) (line-length)
235:51 warning comment not indented like content (comments-indentation)
235:89 error line too long (107 > 88 characters) (line-length)
240:15 warning truthy value should be one of [false, true] (truthy)
240:89 error line too long (98 > 88 characters) (line-length)
241:15 warning truthy value should be one of [false, true] (truthy)
241:89 error line too long (101 > 88 characters) (line-length)
242:51 warning comment not indented like content (comments-indentation)
242:89 error line too long (97 > 88 characters) (line-length)
247:15 warning truthy value should be one of [false, true] (truthy)
247:89 error line too long (98 > 88 characters) (line-length)
248:89 error line too long (99 > 88 characters) (line-length)
249:51 warning comment not indented like content (comments-indentation)
249:89 error line too long (98 > 88 characters) (line-length)
253:15 warning truthy value should be one of [false, true] (truthy)
260:89 error line too long (99 > 88 characters) (line-length)
261:15 warning truthy value should be one of [false, true] (truthy)
271:89 error line too long (96 > 88 characters) (line-length)
284:89 error line too long (109 > 88 characters) (line-length)
285:51 warning comment not indented like content (comments-indentation)
285:89 error line too long (128 > 88 characters) (line-length)
286:89 error line too long (114 > 88 characters) (line-length)
287:89 error line too long (127 > 88 characters) (line-length)
289:89 error line too long (122 > 88 characters) (line-length)
290:89 error line too long (89 > 88 characters) (line-length)
291:89 error line too long (120 > 88 characters) (line-length)
292:89 error line too long (93 > 88 characters) (line-length)
293:19 warning truthy value should be one of [false, true] (truthy)
293:24 error trailing spaces (trailing-spaces)
300:89 error line too long (119 > 88 characters) (line-length)
301:51 warning comment not indented like content (comments-indentation)
301:89 error line too long (122 > 88 characters) (line-length)
302:89 error line too long (93 > 88 characters) (line-length)
305:1 error duplication of key "bind" in mapping (key-duplicates)
313:1 warning comment not indented like content (comments-indentation)
313:89 error line too long (99 > 88 characters) (line-length)
320:89 error line too long (89 > 88 characters) (line-length)
337:89 error line too long (95 > 88 characters) (line-length)
341:89 error line too long (120 > 88 characters) (line-length)
345:1 error too many blank lines (4 > 2) (empty-lines)
358:89 error line too long (89 > 88 characters) (line-length)
362:89 error line too long (117 > 88 characters) (line-length)
363:89 error line too long (89 > 88 characters) (line-length)
365:89 error line too long (102 > 88 characters) (line-length)
371:1 error duplication of key "bind" in mapping (key-duplicates)
test/salt/pillar/default.sls
1:1 warning missing document start "---" (document-start)
11:15 warning truthy value should be one of [false, true] (truthy)
16:15 warning truthy value should be one of [false, true] (truthy)
19:15 warning truthy value should be one of [false, true] (truthy)
28:15 warning truthy value should be one of [false, true] (truthy)
114:1 error too many blank lines (1 > 0) (empty-lines)
```
2019-08-06 20:59:12 +01:00
|
|
|
# Install and run `yamllint`
|
2019-09-10 05:33:31 +01:00
|
|
|
# Need at least `v1.17.0` for the `yaml-files` setting
|
|
|
|
- pip install --user yamllint>=1.17.0
|
|
|
|
- yamllint -s .
|
2019-11-27 21:02:57 +00:00
|
|
|
# Run `shellcheck` (already pre-installed in Travis)
|
|
|
|
- shellcheck --version
|
2019-11-27 22:01:03 +00:00
|
|
|
- git ls-files -- '*.sh' '*.bash' '*.ksh'
|
2019-11-27 21:02:57 +00:00
|
|
|
| xargs shellcheck
|
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix (or ignore) errors shown below:
```bash
bind-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
pillar.example
1:1 warning comment not indented like content (comments-indentation)
1:89 error line too long (95 > 88 characters) (line-length)
2:1 warning missing document start "---" (document-start)
2:10 error wrong indentation: expected 0 but found 9 (indentation)
2:89 error line too long (103 > 88 characters) (line-length)
8:1 error syntax error: expected '<document start>', but found '<block mapping start>'
14:89 error line too long (94 > 88 characters) (line-length)
15:51 warning comment not indented like content (comments-indentation)
19:1 error duplication of key "bind" in mapping (key-duplicates)
21:89 error line too long (93 > 88 characters) (line-length)
23:89 error line too long (102 > 88 characters) (line-length)
27:89 error line too long (96 > 88 characters) (line-length)
32:89 error line too long (143 > 88 characters) (line-length)
33:89 error line too long (134 > 88 characters) (line-length)
35:24 error trailing spaces (trailing-spaces)
36:89 error line too long (91 > 88 characters) (line-length)
37:89 error line too long (93 > 88 characters) (line-length)
38:23 warning truthy value should be one of [false, true] (truthy)
39:27 warning truthy value should be one of [false, true] (truthy)
40:27 warning truthy value should be one of [false, true] (truthy)
44:23 warning truthy value should be one of [false, true] (truthy)
45:27 warning truthy value should be one of [false, true] (truthy)
46:27 warning truthy value should be one of [false, true] (truthy)
50:23 warning truthy value should be one of [false, true] (truthy)
51:27 warning truthy value should be one of [false, true] (truthy)
52:27 warning truthy value should be one of [false, true] (truthy)
55:23 warning truthy value should be one of [false, true] (truthy)
56:27 warning truthy value should be one of [false, true] (truthy)
57:27 warning truthy value should be one of [false, true] (truthy)
62:23 warning truthy value should be one of [false, true] (truthy)
63:27 warning truthy value should be one of [false, true] (truthy)
64:27 warning truthy value should be one of [false, true] (truthy)
89:89 error line too long (91 > 88 characters) (line-length)
90:1 warning comment not indented like content (comments-indentation)
97:1 warning comment not indented like content (comments-indentation)
98:89 error line too long (92 > 88 characters) (line-length)
99:51 warning comment not indented like content (comments-indentation)
99:89 error line too long (96 > 88 characters) (line-length)
102:1 warning comment not indented like content (comments-indentation)
102:35 error trailing spaces (trailing-spaces)
103:20 warning truthy value should be one of [false, true] (truthy)
103:89 error line too long (99 > 88 characters) (line-length)
104:51 warning comment not indented like content (comments-indentation)
106:89 error line too long (99 > 88 characters) (line-length)
109:40 error trailing spaces (trailing-spaces)
110:1 error duplication of key "bind" in mapping (key-duplicates)
113:89 error line too long (115 > 88 characters) (line-length)
115:89 error line too long (110 > 88 characters) (line-length)
116:13 error trailing spaces (trailing-spaces)
129:89 error line too long (120 > 88 characters) (line-length)
130:11 error trailing spaces (trailing-spaces)
150:81 error trailing spaces (trailing-spaces)
167:89 error line too long (118 > 88 characters) (line-length)
168:89 error line too long (101 > 88 characters) (line-length)
169:89 error line too long (103 > 88 characters) (line-length)
169:103 error trailing spaces (trailing-spaces)
170:89 error line too long (107 > 88 characters) (line-length)
170:107 error trailing spaces (trailing-spaces)
171:54 warning comment not indented like content (comments-indentation)
171:89 error line too long (120 > 88 characters) (line-length)
172:15 warning truthy value should be one of [false, true] (truthy)
172:89 error line too long (104 > 88 characters) (line-length)
174:21 error trailing spaces (trailing-spaces)
177:15 warning truthy value should be one of [false, true] (truthy)
178:19 error trailing spaces (trailing-spaces)
180:22 error trailing spaces (trailing-spaces)
186:24 warning truthy value should be one of [false, true] (truthy)
186:89 error line too long (124 > 88 characters) (line-length)
191:15 warning truthy value should be one of [false, true] (truthy)
193:89 error line too long (93 > 88 characters) (line-length)
193:93 error trailing spaces (trailing-spaces)
195:89 error line too long (101 > 88 characters) (line-length)
196:89 error line too long (104 > 88 characters) (line-length)
196:104 error trailing spaces (trailing-spaces)
197:15 warning truthy value should be one of [false, true] (truthy)
200:76 error trailing spaces (trailing-spaces)
206:89 error line too long (94 > 88 characters) (line-length)
208:89 error line too long (94 > 88 characters) (line-length)
209:89 error line too long (98 > 88 characters) (line-length)
213:36 error trailing spaces (trailing-spaces)
216:1 error duplication of key "bind" in mapping (key-duplicates)
218:25 warning truthy value should be one of [false, true] (truthy)
221:1 error too many blank lines (3 > 2) (empty-lines)
223:1 error duplication of key "bind" in mapping (key-duplicates)
231:15 warning truthy value should be one of [false, true] (truthy)
231:89 error line too long (98 > 88 characters) (line-length)
232:89 error line too long (94 > 88 characters) (line-length)
234:89 error line too long (98 > 88 characters) (line-length)
235:51 warning comment not indented like content (comments-indentation)
235:89 error line too long (107 > 88 characters) (line-length)
240:15 warning truthy value should be one of [false, true] (truthy)
240:89 error line too long (98 > 88 characters) (line-length)
241:15 warning truthy value should be one of [false, true] (truthy)
241:89 error line too long (101 > 88 characters) (line-length)
242:51 warning comment not indented like content (comments-indentation)
242:89 error line too long (97 > 88 characters) (line-length)
247:15 warning truthy value should be one of [false, true] (truthy)
247:89 error line too long (98 > 88 characters) (line-length)
248:89 error line too long (99 > 88 characters) (line-length)
249:51 warning comment not indented like content (comments-indentation)
249:89 error line too long (98 > 88 characters) (line-length)
253:15 warning truthy value should be one of [false, true] (truthy)
260:89 error line too long (99 > 88 characters) (line-length)
261:15 warning truthy value should be one of [false, true] (truthy)
271:89 error line too long (96 > 88 characters) (line-length)
284:89 error line too long (109 > 88 characters) (line-length)
285:51 warning comment not indented like content (comments-indentation)
285:89 error line too long (128 > 88 characters) (line-length)
286:89 error line too long (114 > 88 characters) (line-length)
287:89 error line too long (127 > 88 characters) (line-length)
289:89 error line too long (122 > 88 characters) (line-length)
290:89 error line too long (89 > 88 characters) (line-length)
291:89 error line too long (120 > 88 characters) (line-length)
292:89 error line too long (93 > 88 characters) (line-length)
293:19 warning truthy value should be one of [false, true] (truthy)
293:24 error trailing spaces (trailing-spaces)
300:89 error line too long (119 > 88 characters) (line-length)
301:51 warning comment not indented like content (comments-indentation)
301:89 error line too long (122 > 88 characters) (line-length)
302:89 error line too long (93 > 88 characters) (line-length)
305:1 error duplication of key "bind" in mapping (key-duplicates)
313:1 warning comment not indented like content (comments-indentation)
313:89 error line too long (99 > 88 characters) (line-length)
320:89 error line too long (89 > 88 characters) (line-length)
337:89 error line too long (95 > 88 characters) (line-length)
341:89 error line too long (120 > 88 characters) (line-length)
345:1 error too many blank lines (4 > 2) (empty-lines)
358:89 error line too long (89 > 88 characters) (line-length)
362:89 error line too long (117 > 88 characters) (line-length)
363:89 error line too long (89 > 88 characters) (line-length)
365:89 error line too long (102 > 88 characters) (line-length)
371:1 error duplication of key "bind" in mapping (key-duplicates)
test/salt/pillar/default.sls
1:1 warning missing document start "---" (document-start)
11:15 warning truthy value should be one of [false, true] (truthy)
16:15 warning truthy value should be one of [false, true] (truthy)
19:15 warning truthy value should be one of [false, true] (truthy)
28:15 warning truthy value should be one of [false, true] (truthy)
114:1 error too many blank lines (1 > 0) (empty-lines)
```
2019-08-06 20:59:12 +01:00
|
|
|
# Install and run `commitlint`
|
2019-10-31 10:34:29 +00:00
|
|
|
- npm i -D @commitlint/config-conventional
|
|
|
|
@commitlint/travis-cli
|
2019-05-18 17:52:10 +02:00
|
|
|
- commitlint-travis
|
2019-10-09 04:15:41 +01:00
|
|
|
# Run the `rubocop` linter in a separate job that is allowed to fail
|
|
|
|
# Once these lint errors are fixed, this can be merged into a single job
|
|
|
|
- language: node_js
|
|
|
|
node_js: lts/*
|
|
|
|
env: Lint_rubocop
|
|
|
|
name: 'Lint: rubocop'
|
|
|
|
before_install: skip
|
|
|
|
script:
|
|
|
|
# Install and run `rubocop`
|
|
|
|
- gem install rubocop
|
|
|
|
- rubocop -d
|
|
|
|
|
2020-10-03 10:20:21 +01: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 04:15:41 +01: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-07-18 18:57:17 +01:00
|
|
|
# - env: INSTANCE=default-debian-11-tiamat-py3
|
2021-02-12 21:05:52 +00:00
|
|
|
# - env: INSTANCE=default-debian-10-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-debian-9-tiamat-py3
|
2022-05-06 23:11:45 +01:00
|
|
|
# - env: INSTANCE=default-ubuntu-2204-tiamat-py3
|
2021-02-12 21:05:52 +00:00
|
|
|
# - env: INSTANCE=default-ubuntu-2004-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-1804-tiamat-py3
|
2021-11-23 10:30:29 +00:00
|
|
|
# - env: INSTANCE=default-centos-stream8-tiamat-py3
|
2021-02-12 21:05:52 +00:00
|
|
|
# - 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-01 23:59:15 +01:00
|
|
|
# - env: INSTANCE=default-almalinux-8-tiamat-py3
|
|
|
|
# - env: INSTANCE=default-rockylinux-8-tiamat-py3
|
2021-07-18 18:57:17 +01:00
|
|
|
- env: INSTANCE=default-debian-11-master-py3
|
2019-10-24 18:14:18 +01:00
|
|
|
- env: INSTANCE=default-debian-10-master-py3
|
2021-02-12 21:05:52 +00:00
|
|
|
- env: INSTANCE=default-debian-9-master-py3
|
2022-05-06 23:11:45 +01:00
|
|
|
- env: INSTANCE=default-ubuntu-2204-master-py3
|
2021-02-12 21:05:52 +00:00
|
|
|
- env: INSTANCE=default-ubuntu-2004-master-py3
|
|
|
|
- env: INSTANCE=default-ubuntu-1804-master-py3
|
2021-11-23 10:30:29 +00:00
|
|
|
# - env: INSTANCE=default-centos-stream8-master-py3
|
2021-02-12 21:05:52 +00:00
|
|
|
# - env: INSTANCE=default-centos-7-master-py3
|
2022-04-11 19:16:16 +01:00
|
|
|
- env: INSTANCE=default-fedora-36-master-py3
|
2022-04-01 15:29:35 +01:00
|
|
|
- env: INSTANCE=default-fedora-35-master-py3
|
2021-07-01 23:59:15 +01:00
|
|
|
- env: INSTANCE=default-opensuse-leap-153-master-py3
|
2021-02-12 21:05:52 +00:00
|
|
|
# - env: INSTANCE=default-opensuse-tmbl-latest-master-py3
|
|
|
|
- env: INSTANCE=default-amazonlinux-2-master-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-8-master-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-7-master-py3
|
2021-05-09 22:27:26 +01:00
|
|
|
# - env: INSTANCE=default-arch-base-latest-master-py3
|
2021-02-12 21:05:52 +00:00
|
|
|
# - env: INSTANCE=default-gentoo-stage3-latest-master-py3
|
|
|
|
# - env: INSTANCE=default-gentoo-stage3-systemd-master-py3
|
2021-07-01 23:59:15 +01:00
|
|
|
# - env: INSTANCE=default-almalinux-8-master-py3
|
|
|
|
# - env: INSTANCE=default-rockylinux-8-master-py3
|
2022-04-03 15:02:26 +01:00
|
|
|
# - env: INSTANCE=default-debian-11-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-debian-10-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-debian-9-3004-1-py3
|
2022-05-06 23:11:45 +01:00
|
|
|
# - env: INSTANCE=default-ubuntu-2204-3004-1-py3
|
2022-04-03 15:02:26 +01:00
|
|
|
# - env: INSTANCE=default-ubuntu-2004-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-1804-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-centos-stream8-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-centos-7-3004-1-py3
|
2022-04-11 19:16:16 +01:00
|
|
|
# - env: INSTANCE=default-fedora-36-3004-1-py3
|
2022-04-03 15:02:26 +01:00
|
|
|
# - env: INSTANCE=default-fedora-35-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-amazonlinux-2-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-8-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-7-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-arch-base-latest-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-gentoo-stage3-latest-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-gentoo-stage3-systemd-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-almalinux-8-3004-1-py3
|
|
|
|
# - env: INSTANCE=default-rockylinux-8-3004-1-py3
|
2021-11-23 10:30:29 +00:00
|
|
|
# - env: INSTANCE=default-opensuse-leap-153-3004-0-py3
|
|
|
|
# - env: INSTANCE=default-opensuse-tmbl-latest-3004-0-py3
|
2022-04-03 15:02:26 +01:00
|
|
|
# - env: INSTANCE=default-debian-10-3003-4-py3
|
|
|
|
# - env: INSTANCE=default-debian-9-3003-4-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-2004-3003-4-py3
|
|
|
|
# - env: INSTANCE=default-ubuntu-1804-3003-4-py3
|
|
|
|
# - env: INSTANCE=default-centos-stream8-3003-4-py3
|
|
|
|
# - env: INSTANCE=default-centos-7-3003-4-py3
|
|
|
|
# - env: INSTANCE=default-amazonlinux-2-3003-4-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-8-3003-4-py3
|
|
|
|
# - env: INSTANCE=default-oraclelinux-7-3003-4-py3
|
|
|
|
# - env: INSTANCE=default-almalinux-8-3003-4-py3
|
2019-10-09 04:15:41 +01:00
|
|
|
|
|
|
|
## Define the release stage that runs `semantic-release`
|
2019-11-16 20:09:36 +00:00
|
|
|
- stage: 'release'
|
|
|
|
language: 'node_js'
|
|
|
|
node_js: 'lts/*'
|
|
|
|
env: 'Release'
|
2019-10-09 04:15:41 +01:00
|
|
|
name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
|
2019-11-16 20:09:36 +00:00
|
|
|
before_install: 'skip'
|
2019-05-18 17:52:10 +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 10:34:29 +00:00
|
|
|
- npm i -D @semantic-release/changelog@3
|
|
|
|
@semantic-release/exec@3
|
|
|
|
@semantic-release/git@7
|
2019-05-18 17:52:10 +02:00
|
|
|
deploy:
|
2019-11-16 20:09:36 +00:00
|
|
|
provider: 'script'
|
2019-11-20 16:36:15 +00: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 20:09:36 +00:00
|
|
|
# Run `semantic-release`
|
2019-12-21 17:22:22 +00:00
|
|
|
script: 'npx semantic-release@15.14'
|
2020-05-21 20:04:09 +01:00
|
|
|
|
|
|
|
# Notification options: `always`, `never` or `change`
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
if: 'repo = saltstack-formulas/bind-formula'
|
|
|
|
urls:
|
|
|
|
- https://saltstack-formulas.zulipchat.com/api/v1/external/travis?api_key=HsIq3o5QmLxdnVCKF9is0FUIpkpAY79P&stream=CI&topic=saltstack-formulas%2Fbind-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
|