forked from ministryofjustice/django-moj-irat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (25 loc) · 903 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.PHONY: help clean test test-all coverage release
help:
@echo "Using make is entirely optional; these are simply shortcuts"
@echo "See README.rst for normal usage."
@echo ""
@echo "clean - remove all build and test artifacts"
@echo "test - run all tests using current python environment"
@echo "test-all - run all tests in all supported python environments"
@echo "coverage - check code coverage while running all tests using current python environment"
@echo "release - NOT NORMALLY USED; See README.rst for release process"
clean:
rm -fr build/ dist/ .eggs/ .tox/ .coverage
find . -name '*.pyc' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
test: clean
python setup.py test
test-all: clean
pip install tox
tox
coverage: clean
pip install coverage
coverage run setup.py test
coverage report --show-missing
release: clean
python setup.py sdist bdist_wheel upload