-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
33 lines (25 loc) · 913 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
32
33
.PHONY: deps-test clean unit acceptance tests upload
deps-test:
@pip install -r test_requirements.txt
clean:
@echo "Cleaning up build and *.pyc files..."
@find . -name "*.pyc" -delete
@rm -rf .coverage
@rm -rf ./build
@rm -rf ./dist
@rm -rf ./cover
@rm -rf ./MANIFEST
@echo "Done!"
unit: clean deps-test
@coverage run --branch `which nosetests` -vv --with-yanc -s tests/unit/
@coverage report -m --fail-under=80
acceptance: clean deps-test
@nosetests -vv --with-yanc -s tests/acceptance/
tests: deps-test
nosetests -s --cover-branches --cover-erase --with-coverage --cover-inclusive --cover-package=src --with-xunit --with-yanc
focus: deps-test
nosetests -s --cover-branches --cover-erase --with-coverage --cover-inclusive --cover-package=src --with-xunit --with-yanc --with-focus
upload:
@python ./setup.py sdist upload -r pypi
upload-local:
@python ./setup.py sdist upload -r pypi-local