Project: Add shellcheck to Travis build checks

This commit is contained in:
Kekoa Kaaikala 2022-08-29 14:32:50 +00:00
parent c5fa6edfee
commit 728eea781d
1 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,10 @@ jobs:
size: x-large
env:
- PIP_CACHE_DIR=$HOME/.cache/pip PIPENV_CACHE_DIR=$HOME/.cache/pipenv LIBSODIUM_MAKE_ARGS=-j8
addons:
apt:
packages:
- shellcheck
cache:
- pip: true
@ -85,6 +89,9 @@ jobs:
- JS_WARNINGS_AMOUNT_UPPER_LIMIT=0
- eslint ./src --max-warnings $JS_WARNINGS_AMOUNT_UPPER_LIMIT # test for max warnings
# check shell scripts
- for file in $(find $TRAVIS_BUILD_DIR -type f); do shellcheck --format=gcc $file; done;
# build documentation
- cd $TRAVIS_BUILD_DIR/docs
- ../hugo --verbose --environment staging