forked from openedx/event-tracking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (30 loc) · 848 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
37
38
39
40
41
42
43
44
45
export DJANGO_SETTINGS_MODULE=eventtracking.django.tests.settings
MAKE_DOC=make -C doc
SETUP=python setup.py
.PHONY: test.unit style lint
clean:
$(SETUP) clean
$(MAKE_DOC) clean
coverage erase
find -name '*.pyc' -delete
ci: test.unit test.integration style lint
test.setup:
pip install -r dev-requirements.txt -q
test: test.unit test.integration test.performance
test.unit: test.setup
nosetests --cover-erase --with-coverage -A 'not integration and not performance' --cover-min-percentage=95
test.integration: test.setup
nosetests --verbose --nocapture -a 'integration'
test.performance: test.setup
nosetests --verbose --nocapture -a 'performance'
style:
pep8 eventtracking
lint:
pylint --reports=y eventtracking
install:
python setup.py install
develop:
python setup.py develop
doc: doc.html
doc.html:
$(MAKE_DOC) html