Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
swclock-offset
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
swclock-offset
Commits
941df5aa
Unverified
Commit
941df5aa
authored
2 years ago
by
Jakko
Committed by
Oliver Smith
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add shellcheck CI (MR 2)
parent
ff6fe253
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Add shellcheck CI
Pipeline
#141267
passed
2 years ago
Stage: lint
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/shellcheck.sh
+15
-0
15 additions, 0 deletions
.ci/shellcheck.sh
.gitlab-ci.yml
+13
-0
13 additions, 0 deletions
.gitlab-ci.yml
with
28 additions
and
0 deletions
.ci/shellcheck.sh
0 → 100755
+
15
−
0
View file @
941df5aa
#!/bin/sh -e
# Description: lint all shell scripts
# https://postmarktos.org/pmb-ci
if
[
"
$(
id
-u
)
"
=
0
]
;
then
set
-x
apk
-q
add shellcheck
exec
su
"
${
TESTUSER
:-
build
}
"
-c
"sh -e
$0
"
fi
find
.
-name
'*.sh'
|
while
read
-r
file
;
do
echo
"shellcheck:
$file
"
shellcheck
"
$file
"
done
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
13
−
0
View file @
941df5aa
# global settings
image
:
alpine:latest
stages
:
-
lint
# shellcheck
shellcheck
:
stage
:
lint
image
:
alpine:edge
before_script
:
-
adduser -D build
script
:
-
.ci/shellcheck.sh
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment