[gitlab] Add shell script unit testing with bats

This commit is contained in:
Marty Oehme 2019-07-27 12:28:29 +02:00
parent beb5f1c323
commit 47be465ea7

View file

@ -24,3 +24,11 @@ lint:
- find . -type f -name '*.sh' | xargs shfmt -d -i 2
- echo "--------- CHECKING ZSH SHELLSCRIPTS -------------"
- find . -type f -name '*.zsh' | xargs shfmt -d -i 2
test:
stage: test
image: bats/bats:latest
before_script:
- bats --version
script:
- bats -r .