mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 03:56:43 +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
|
- make setup_ci
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make test
|
- make coverage
|
||||||
- make style
|
- make style
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
|
11
Makefile
11
Makefile
@ -11,11 +11,8 @@ style:
|
|||||||
flake8 InvenTree --ignore=C901,E501
|
flake8 InvenTree --ignore=C901,E501
|
||||||
|
|
||||||
test:
|
test:
|
||||||
# Perform Django system checks
|
|
||||||
python InvenTree/manage.py check
|
python InvenTree/manage.py check
|
||||||
|
python InvenTree/manage.py test build company part project stock supplier track
|
||||||
# Run the test framework (through coverage script)
|
|
||||||
coverage run InvenTree/manage.py test
|
|
||||||
|
|
||||||
migrate:
|
migrate:
|
||||||
python InvenTree/manage.py makemigrations company
|
python InvenTree/manage.py makemigrations company
|
||||||
@ -26,7 +23,6 @@ migrate:
|
|||||||
python InvenTree/manage.py check
|
python InvenTree/manage.py check
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# TODO: replace this with a proper setup.py
|
|
||||||
pip install -U -r requirements/base.txt
|
pip install -U -r requirements/base.txt
|
||||||
|
|
||||||
setup: install migrate
|
setup: install migrate
|
||||||
@ -34,5 +30,10 @@ setup: install migrate
|
|||||||
setup_ci:
|
setup_ci:
|
||||||
pip install -U -r requirements/build.txt
|
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:
|
superuser:
|
||||||
python InvenTree/manage.py createsuperuser
|
python InvenTree/manage.py createsuperuser
|
||||||
|
Loading…
x
Reference in New Issue
Block a user