mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
commit
d46afcdfe8
5
.coveragerc
Normal file
5
.coveragerc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[run]
|
||||||
|
source = ./InvenTree
|
||||||
|
omit =
|
||||||
|
# Do not run coverage on migration files
|
||||||
|
*/migrations/*
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -32,3 +32,7 @@ InvenTree/media
|
|||||||
|
|
||||||
# Ignore PyCharm project configuration
|
# Ignore PyCharm project configuration
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
# Coverage reports
|
||||||
|
.coverage
|
||||||
|
htmlcov/
|
@ -15,3 +15,6 @@ before_install:
|
|||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
- make style
|
- make style
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- coveralls
|
8
Makefile
8
Makefile
@ -11,8 +11,11 @@ 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 --noinput
|
|
||||||
|
# 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
|
||||||
@ -31,8 +34,5 @@ setup: install migrate
|
|||||||
setup_ci:
|
setup_ci:
|
||||||
pip install -U -r requirements/build.txt
|
pip install -U -r requirements/build.txt
|
||||||
|
|
||||||
develop:
|
|
||||||
pip install -U -r requirements/dev.txt
|
|
||||||
|
|
||||||
superuser:
|
superuser:
|
||||||
python InvenTree/manage.py createsuperuser
|
python InvenTree/manage.py createsuperuser
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
-r base.txt
|
-r base.txt
|
||||||
flake8==3.3.0
|
flake8==3.3.0
|
||||||
|
coverage>=4.5.3
|
||||||
|
python-coveralls==2.9.1
|
Loading…
x
Reference in New Issue
Block a user