Add automatic shellchecks with CI
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
This commit is contained in:
parent
55887d9afe
commit
8d5eda8af7
2 changed files with 10 additions and 0 deletions
9
.build.yml
Normal file
9
.build.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
image: alpine/edge
|
||||||
|
packages:
|
||||||
|
- shellcheck
|
||||||
|
sources:
|
||||||
|
- https://git.sr.ht/~mil/sxmo-utils
|
||||||
|
tasks:
|
||||||
|
- shellcheck: |
|
||||||
|
cd sxmo-utils
|
||||||
|
shellcheck scripts/*/*
|
|
@ -3,6 +3,7 @@
|
||||||
envvars() {
|
envvars() {
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
[ -f /etc/profile ] && . /etc/profile
|
[ -f /etc/profile ] && . /etc/profile
|
||||||
|
# shellcheck source=/dev/null
|
||||||
[ -f "$HOME"/.profile ] && . "$HOME"/.profile
|
[ -f "$HOME"/.profile ] && . "$HOME"/.profile
|
||||||
command -v "$TERM" || export TERM=st
|
command -v "$TERM" || export TERM=st
|
||||||
command -v "$BROWSER" || export BROWSER=surf
|
command -v "$BROWSER" || export BROWSER=surf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue