forked from atodorov/django-s3-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 1.1 KB
/
Makefile
File metadata and controls
38 lines (31 loc) · 1.1 KB
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
34
35
36
37
38
test:
PYTHONPATH=. nosetests -v --with-coverage --cover-branches --cover-erase \
--cover-package s3cache tests/ && coverage report -m
mutation_test:
PYTHONPATH=. cosmic-ray run --baseline=10 --test-runner=nose s3cache.json s3cache -- -v tests/*.py
cosmic-ray report s3cache.json
# allow 10% mutation test failures before reporting FAIL
echo "$$(cosmic-ray survival-rate s3cache.json) > 10" | bc -l
pylint:
pylint -rn *.py s3cache/ tests/*.py
build: test
./setup.py sdist
upload: test
./setup.py sdist upload
clean:
./setup.py clean
rm -rf django_s3_cache.egg-info/
rm -f MANIFEST *.pyc s3cache/*.pyc
distclean: clean
rm -rf dist/
rm -rf tests/__pycache__/
help:
@echo "Usage: make <target> "
@echo " "
@echo " test - run the tests "
@echo " pylint - run PyLint "
@echo " build - build the package "
@echo " upload - upload to PyPI "
@echo " clean - remove all build files "
@echo " distclean - remove all non git files "
@echo " help - show this help and exit "