Add automatic shellchecks with CI

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
This commit is contained in:
Reed Wade 2020-10-30 14:41:17 +01:00 committed by Anjandev Momi
parent 55887d9afe
commit 8d5eda8af7
2 changed files with 10 additions and 0 deletions

9
.build.yml Normal file
View 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/*/*

View file

@ -3,6 +3,7 @@
envvars() {
# shellcheck disable=SC1091
[ -f /etc/profile ] && . /etc/profile
# shellcheck source=/dev/null
[ -f "$HOME"/.profile ] && . "$HOME"/.profile
command -v "$TERM" || export TERM=st
command -v "$BROWSER" || export BROWSER=surf