forked from p15670423/monkey
Compare commits
2 Commits
develop
...
add-shellc
Author | SHA1 | Date |
---|---|---|
Kekoa Kaaikala | 728eea781d | |
Kekoa Kaaikala | c5fa6edfee |
|
@ -35,6 +35,10 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: eslint
|
- id: eslint
|
||||||
args: ["monkey/monkey_island/cc/ui/src/", "--fix", "--max-warnings=0"]
|
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
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: pytest
|
- id: pytest
|
||||||
|
|
|
@ -22,6 +22,10 @@ jobs:
|
||||||
size: x-large
|
size: x-large
|
||||||
env:
|
env:
|
||||||
- PIP_CACHE_DIR=$HOME/.cache/pip PIPENV_CACHE_DIR=$HOME/.cache/pipenv LIBSODIUM_MAKE_ARGS=-j8
|
- PIP_CACHE_DIR=$HOME/.cache/pip PIPENV_CACHE_DIR=$HOME/.cache/pipenv LIBSODIUM_MAKE_ARGS=-j8
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- shellcheck
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- pip: true
|
- pip: true
|
||||||
|
@ -85,6 +89,9 @@ jobs:
|
||||||
- JS_WARNINGS_AMOUNT_UPPER_LIMIT=0
|
- JS_WARNINGS_AMOUNT_UPPER_LIMIT=0
|
||||||
- eslint ./src --max-warnings $JS_WARNINGS_AMOUNT_UPPER_LIMIT # test for max warnings
|
- 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
|
# build documentation
|
||||||
- cd $TRAVIS_BUILD_DIR/docs
|
- cd $TRAVIS_BUILD_DIR/docs
|
||||||
- ../hugo --verbose --environment staging
|
- ../hugo --verbose --environment staging
|
||||||
|
|
Loading…
Reference in New Issue