Improved makefile

- Separate make for coverage of testing
- the 'test' option needs some work (have to pass all app names for some reason)
This commit is contained in:
Oliver Walters 2019-04-25 03:12:41 +10:00
parent e6617fef80
commit b45b63545e
2 changed files with 7 additions and 6 deletions

View File

@ -13,7 +13,7 @@ before_install:
- make setup_ci
script:
- make test
- make coverage
- make style
after_success:

View File

@ -11,11 +11,8 @@ style:
flake8 InvenTree --ignore=C901,E501
test:
# Perform Django system checks
python InvenTree/manage.py check
# Run the test framework (through coverage script)
coverage run InvenTree/manage.py test
python InvenTree/manage.py test build company part project stock supplier track
migrate:
python InvenTree/manage.py makemigrations company
@ -26,7 +23,6 @@ migrate:
python InvenTree/manage.py check
install:
# TODO: replace this with a proper setup.py
pip install -U -r requirements/base.txt
setup: install migrate
@ -34,5 +30,10 @@ setup: install migrate
setup_ci:
pip install -U -r requirements/build.txt
coverage:
python InvenTree/manage.py check
coverage run InvenTree/manage.py test build company part project stock supplier track
coverage html
superuser:
python InvenTree/manage.py createsuperuser