From ba10cbd9623857db4d1fa84af8cd45f15d553b00 Mon Sep 17 00:00:00 2001 From: solidnerd Date: Fri, 23 Nov 2018 21:27:44 +0100 Subject: [PATCH] Add shellcheck to CI Signed-off-by: solidnerd --- .circleci/config.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8745a2a4..6b81234e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,5 +1,21 @@ version: 2 jobs: + shellcheck: + docker: + - image: nlknguyen/alpine-shellcheck:v0.4.6 + steps: + - checkout + - run: + name: Check Docker Hub Hooks + command: | + find hooks -type f | wc -l + find hooks -type f | xargs shellcheck -e SC2086 --external-sources + - run: + name: Check Scripts + command: | + find . -type f -name '*.sh' | wc -l + find . -type f -name '*.sh' | xargs shellcheck -e SC2086 -e SC1090 --external-sources + build: docker: - image: circleci/golang:1-stretch-browsers-legacy @@ -73,4 +89,5 @@ workflows: version: 2 build-and-test: jobs: + - shellcheck - build