-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
52 lines (41 loc) · 1.33 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.PHONY: clean-pyc clean-build docs
help:
@echo "clean-build - remove build artifacts"
@echo "clean-pyc - remove Python file artifacts"
@echo "develop - install all packages required for development"
@echo "lint - check style with flake8"
@echo "test - run tests quickly with the default Python"
@echo "test-all - run tests on every Python version with tox"
@echo "docs - generate Sphinx HTML documentation, including API docs"
clean: clean-build clean-pyc
deps:
pip install --upgrade -r requirements.txt
pip install -e . --allow-all-external
pip install "file://`pwd`#egg=mailme[tox]"
pip install "file://`pwd`#egg=mailme[docs]"
pip install "file://`pwd`#egg=mailme[tests]"
pip install "file://`pwd`#egg=mailme[postgres]"
develop: deps
npm install
bower update
gem install foreman compass
docs: clean-build
sphinx-apidoc --force -o docs/source/modules/ src/mailme src/mailme/*/migrations src/mailme/tests
$(MAKE) -C docs clean
$(MAKE) -C docs html
clean-build:
rm -fr build/ src/build
rm -fr dist/ src/dist
rm -fr *.egg-info src/*.egg-info
rm -fr htmlcov/
$(MAKE) -C docs clean
lint:
flake8 mailme --ignore='E122,E124,E125,E126,E128,E501,F403' --exclude="**/migrations/**"
test-ci:
$(MAKE) test
test:
py.test -vs --pep8 --flakes
test-coverage:
py.test -vs --pep8 --flakes --cov mailme --cov-report term-missing
test-all:
tox