forked from stephrdev/django-cms-helpers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (26 loc) · 808 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
34
35
36
.PHONY: clean tests cov docs release
VERSION = $(shell pipenv run python -c "print(__import__('cms_helpers').__version__)")
clean:
rm -fr docs/_build build/ dist/
pipenv run make -C docs clean
tests:
pipenv run py.test --cov
tests_base:
py.test --cov --ignore=tests/anylink --ignore=tests/filer
tests_anylink:
py.test --cov --ignore=tests/filer
tests_filer:
py.test --cov --ignore=tests/anylink
cov: tests
pipenv run coverage html
@echo open htmlcov/index.html
apidoc:
pipenv run make -C docs apidoc
docs:
pipenv run make -C docs html
@echo open docs/_build/html/index.html
release:
@echo About to release ${VERSION}; read
pipenv run python setup.py sdist upload
pipenv run python setup.py bdist_wheel upload
git tag -a "${VERSION}" -m "Version ${VERSION}" && git push --follow-tags