Commit c136d33d authored by fnux's avatar fnux

Merge branch 'policies-and-ci' into 'master'

Rolling-release policy, CI, new type requirements (shellcheck + manpage)

See merge request !2
parents 1cfcfb6a c6da87d3
Pipeline #1406 passed with stage
in 30 seconds
- test
stage: test
- ./scripts/
stage: test
- ./scripts/
# cdist-contrib chsangelog
# cdist-contrib changes
## 2020-0?-??: 0.?.? (Not released yet)
* New type: __find_exec (Ander Punnar)
* 2020-04-28: New type: __find_exec (Ander Punnar)
......@@ -5,7 +5,8 @@ tool with community-maitained types which are either too specific to fit/be
maintained in cdist itself or were not accepted in code cdist but could still
be useful.
The releases of cdist-contrib are not necessarly synced with cdist itself.
This project does not have releases and is continously updated: see
`` for details.
## Using cdist-contrib
......@@ -39,3 +40,16 @@ Join us on [][cdistmatrix] on matrix or on
## Contributing
The preferred way to submit patches is by opening Merge Requests against the
[cdist-contrib project on]( (you
can make an account on
Every type in cdist-contrib must:
* Have a `man.rst` documentation page.
* Pass [shellcheck]( without errors.
# Move to top-level cdist-contrib directory.
cd $(dirname $0)/..
# Check that each type has a man page.
for t in type/*; do
if [ ! -f "$t/man.rst" ]; then
echo "No manpage for type $t!"
exit $status
SHELLCHECKCMD="shellcheck -s sh -f gcc -x"
# Skip SC2154 for variables starting with __ since such variables are cdist
# environment variables.
SHELLCHECK_SKIP=': __.*is referenced but not assigned.*\[SC2154\]'
# Move to top-level cdist-contrib directory.
cd $(dirname $0)/..
check () {
find type/ -type f $1 $2 -exec ${SHELLCHECKCMD} {} + | grep -v "${SHELLCHECK_SKIP}" > "${SHELLCHECKTMP}"
test ! -s "${SHELLCHECKTMP}" || { cat "${SHELLCHECKTMP}"; exit 1; }
check -path "*/explorer/*"
check -path "*/files/*"
check -name manifest
check -name gencode-local
check -name gencode-remote
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment