mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
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:
parent
e6617fef80
commit
b45b63545e
@ -13,7 +13,7 @@ before_install:
|
||||
- make setup_ci
|
||||
|
||||
script:
|
||||
- make test
|
||||
- make coverage
|
||||
- make style
|
||||
|
||||
after_success:
|
||||
|
11
Makefile
11
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user