2016-11-22 21:50:21 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2016-11-26 16:01:14 +00:00
|
|
|
export PATH=node_modules/.bin:${PATH}
|
2016-11-22 21:50:21 +00:00
|
|
|
export PATH=env/bin:${PATH}
|
|
|
|
export DEBUG=true
|
|
|
|
export IN_TEST=true
|
|
|
|
export SECRET_KEY='secrit'
|
|
|
|
|
|
|
|
flake8 project --ignore=E128,E501 --exclude=migrations,settings,wsgi.py
|
|
|
|
coverage run --source=project --omit='*/wsgi.py,*/settings.py,*/migrations/*.py,*__init__.py' manage.py test $@
|
|
|
|
coverage report
|
|
|
|
|
|
|
|
npm test
|
2016-11-26 15:54:31 +00:00
|
|
|
|
|
|
|
bandit -r project/ manage.py
|
|
|
|
safety check
|
2016-11-26 16:01:14 +00:00
|
|
|
nsp check
|
|
|
|
snyk test
|