ci: add 'make test' target to validate CI job scripts

This merges several files from the master branch into ci/centos so that
the scripts, MarkDown and yaml files can be checked.

Run 'make' or 'make test' to validate the contents of this branch.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos
2020-05-26 17:24:10 +02:00
parent 1f751fd07a
commit 65a2794e60
6 changed files with 254 additions and 0 deletions

30
.commitlintrc.yml Normal file
View File

@ -0,0 +1,30 @@
---
# rules are documented at https://commitlint.js.org/#/reference-rules
# each rule has a n arry of three values:
# - 0, 1, 2 (rule is disabled, warning or error)
# - always/never
# - value
rules:
# the subject may not exceed 72 characters
header-max-length: [2, always, 72]
# the subject may not end with a "."
header-full-stop: [2, never, "."]
# we do not use scopes for commit messages
scope-empty: [1, always]
# valid types/prefixes, see docs/development-guide.md
type-enum:
- 1
- always
- - build
- cephfs
- ci
- cleanup
- deploy
- doc
- e2e
- helm
- journal
- rbd
- rebase
- revert
- util