Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dynamic Exposure
server-components
containers
docker-spearhead
Commits
f503f9fa
Commit
f503f9fa
authored
Feb 09, 2021
by
Felix Delattre
Browse files
Added CI for shell script
parent
cc8d86c1
Pipeline
#19235
passed with stage
in 1 minute and 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
f503f9fa
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
Makefile
0 → 100644
View file @
f503f9fa
SOURCES
=
./files/start.sh
LENGTH
=
96
check
:
$(SOURCES)
shellcheck
$^
shfmt
-i
2
-d
$^
format
:
$(SOURCES)
shfmt
-i
2
-w
$^
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment