1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
wagtail-website-2018-spike/scripts/test.sh

21 lines
442 B
Bash
Raw Normal View History

2018-07-27 21:37:11 +01:00
#!/usr/bin/env bash
set -e
source ./scripts/common.sh
export IN_TEST=true
echo ">> Running flake8..."
flake8 project --ignore=E128,E501 --exclude=migrations,wsgi.py
echo ">> Running backend unit tests..."
coverage run --source=project --omit='*/wsgi.py,*/settings.py,*/migrations/*.py,*__init__.py' manage.py test $@
coverage report
2018-07-27 21:48:42 +01:00
echo ">> Linting SCSS..."
sass-lint -vqc .sass-lint.yml
echo ">> Linting JS..."
eslint $STATIC_SRC/js