From 47be465ea72363f56531da689f188716bcb2e39c Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 27 Jul 2019 12:28:29 +0200 Subject: [PATCH] [gitlab] Add shell script unit testing with bats --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f9b1f23..4a9155c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 .