-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
75 lines (58 loc) · 1.42 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
# Basic makefile for general targets
#
VIRTUALENV_PATH = venv
VIRTUALENV_BIN = $(VIRTUALENV_PATH)/bin
EASY_INSTALL = $(VIRTUALENV_BIN)/easy_install
DEV_ENV = source $(VIRTUALENV_BIN)/activate ;
NOSE = $(VIRTUALENV_BIN)/nosetests --nocapture
NOSYD = $(VIRTUALENV_BIN)/nosyd -1
PIP = $(VIRTUALENV_BIN)/pip
PYTHON = $(ENV) $(VIRTUALENV_BIN)/python
.PHONY: test
test: unit-test integration-test acceptance-test
.PHONY: unit-test
unit-test:
$(NOSE) tests/unit
.PHONY: integration-test
integration-test:
$(NOSE) tests/integration
.PHONY: acceptance-test
acceptance-test:
$(NOSE) tests/acceptance -v
.PHONY: tdd
tdd:
$(DEV_ENV) $(NOSYD) tests/unit
.PHONY: docs
docs:
bin/sphinx-build -b html -d docs/build/doctrees docs/source docs/html
.PHONY: foreman
foreman:
$(DEV_ENV) foreman start -f Procfile
.PHONY: develop
develop:
$(PYTHON) setup.py develop
.PHONY: clean
clean:
-$(PYTHON) setup.py clean
-find . -type f -name '*.pyc' -o -name '*.tar.gz' -delete
-rm -f nosetests.xml
-rm -f pip-log.txt
-rm -f .nose-stopwatch-times
-rm -rf build dist *.egg-info
.PHONY: dist
dist: clean
$(shell export COPYFILE_DISABLE=true)
$(PYTHON) setup.py sdist
.PHONY: upload
upload:
$(PYTHON) setup.py sdist upload
.PHONY: requirements
requirements:
$(EASY_INSTALL) -U distribute
$(PIP) install -r local_requirements.txt
.PHONY: osx_requirements
osx_requirements:
.PHONY: virtualenv
virtualenv:
virtualenv --distribute $(VIRTUALENV_PATH)