Compare commits

...

3 Commits

Author SHA1 Message Date
Kekoa Kaaikala ef22b394c9 Project: Only shellcheck .sh and .bash files 2022-08-29 14:50:33 +00:00
Kekoa Kaaikala 728eea781d Project: Add shellcheck to Travis build checks 2022-08-29 14:32:50 +00:00
Kekoa Kaaikala c5fa6edfee Project: Add ShellCheck to pre-commit hooks 2022-08-25 14:35:25 +00:00
2 changed files with 11 additions and 0 deletions

View File

@ -35,6 +35,10 @@ repos:
hooks:
- id: eslint
args: ["monkey/monkey_island/cc/ui/src/", "--fix", "--max-warnings=0"]
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.7.2
hooks:
- id: shellcheck
- repo: local
hooks:
- id: pytest

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 -name "*.sh" -or -name "*.bash"); do shellcheck --format=gcc $file; done;
# build documentation
- cd $TRAVIS_BUILD_DIR/docs
- ../hugo --verbose --environment staging