Commit 570c8823 authored by Felix Delattre's avatar Felix Delattre
Browse files

Added CI for shell script

parent ff938691
Pipeline #19217 failed with stage
in 1 minute and 1 second
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
- ls /usr/local/go/bin/shfmt
linters:
script:
- make check
SOURCES=./files/start.sh
LENGTH=96
check: $(SOURCES)
shellcheck $^
shfmt -i 2 -d $^
format: $(SOURCES)
shfmt -i 2 -w $^
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment