Add tests
This commit is contained in:
parent
cc7669e842
commit
be273475c9
4 changed files with 23 additions and 0 deletions
7
tests/00-selfsanity.sh
Executable file
7
tests/00-selfsanity.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
find . -maxdepth 1 -type f -name "*.sh" -print0 | xargs -0 -t -n 1 shellcheck --
|
6
tests/01-yamllint.sh
Executable file
6
tests/01-yamllint.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd "$(dirname "$0")/.." || exit 1
|
||||
|
||||
find . -type f -name "*.yml" -not -path "./playbooks/roles/*" -print0 | \
|
||||
xargs -0 -t -n 1 yamllint -s --
|
6
tests/02-ansiblelint.sh
Executable file
6
tests/02-ansiblelint.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd "$(dirname "$0")/.." || exit 1
|
||||
|
||||
find . -mindepth 1 -maxdepth 1 -type d '!' -name ".*" -not -path "./tests" -print0 | \
|
||||
xargs -0 -t -n 1 -- ansible-lint -x meta-no-info --
|
4
tests/Makefile
Normal file
4
tests/Makefile
Normal file
|
@ -0,0 +1,4 @@
|
|||
.PHONY = all
|
||||
|
||||
all:
|
||||
@for x in *.sh ; do sh "$$x" || exit 1 ; done
|
Loading…
Add table
Reference in a new issue