From 969cac950311c1e09fbeef9b85470abec929222d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 10 Jan 2017 09:18:58 +0000 Subject: [PATCH] Add test script --- circle.yml | 5 +++++ scripts/test | 28 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 scripts/test diff --git a/circle.yml b/circle.yml index 3c3e99a..6679a9f 100644 --- a/circle.yml +++ b/circle.yml @@ -11,3 +11,8 @@ machine: dependencies: pre: - scripts/build + + +test: + override: + - scripts/test diff --git a/scripts/test b/scripts/test new file mode 100644 index 0000000..9783554 --- /dev/null +++ b/scripts/test @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +export PATH=env/bin:${PATH} +export PATH=node_modules/.bin:${PATH} + +FLAKE8_IGNORE=--ignore=E128,E501,E401,E402 + +set -e + +nose2 --verbose + +eslint 'theme/static/src/js/' + +sass-lint -vqc .sass-lint.yml + +flake8 plugins/ $FLAKE8_IGNORE +flake8 scripts/ $FLAKE8_IGNORE +flake8 config/ $FLAKE8_IGNORE +flake8 tests/ $FLAKE8_IGNORE + +yamllint config/config.yml + +mdspell --en-gb -ranx theme/templates/**/*.* theme/templates/*.* +mdspell --en-gb -ranx content/**/*.md content/*.md content/**/*.html content/*.html + +nsp check + +bandit -r plugins/ config/ tests/