Commit 75495ff2 authored by Felix Delattre's avatar Felix Delattre
Browse files

Added CI for shell script

parent ff938691
Pipeline #19215 failed with stage
in 58 seconds
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 $HOME/go/bin/shfm
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