diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..b3c7033acff61cd20e3680d672ea8848239ecaf6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,12 @@ +image: debian:bullseye-slim + +before_script: + - apt update -y + - apt install -y git make shellcheck golang-go + - export GOPATH="$HOME/go" + - export PATH="$PATH:$GOPATH/bin" + - go get -u github.com/mvdan/sh/cmd/shfmt + +linters: + script: + - make check diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..4be0bf7d7f499d58e1230e35fc6144e43698cd55 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +SOURCES=./files/start.sh +LENGTH=96 + +check: $(SOURCES) + shellcheck $^ + shfmt -i 2 -d $^ + +format: $(SOURCES) + shfmt -i 2 -w $^