-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 1.02 KB
/
Copy pathMakefile
File metadata and controls
42 lines (32 loc) · 1.02 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
39
40
41
env: env/bin/activate
env/bin/activate: requirements.txt requirements-test.txt
test -d env || pyvenv env
env/bin/pip install --upgrade pip setuptools
env/bin/pip install -Ur requirements.txt
env/bin/pip install -Ur requirements-test.txt
touch env/bin/activate
migrate: env
env/bin/python ./meetup/manage.py migrate --traceback
serve: migrate
env/bin/python ./meetup/manage.py runserver --traceback
shell: migrate
env/bin/python ./meetup/manage.py shell_plus
test: lint test-unit test-integration test-functional
lint: env
@echo "Linting Python files ..."
env/bin/flake8 meetup || exit 1
@echo
test-unit: env
@echo "Running unit tests ..."
env/bin/py.test -sv -rfE --tb=native tests/unit || exit 1
@echo
test-integration: env
@echo "Running integration tests ..."
env/bin/py.test -sv -rfE --tb=native tests/integration || exit 1
@echo
test-functional: env
@echo "Running functional tests ..."
env/bin/py.test -sv -rfE --tb=native tests/functional || exit 1
@echo
wip: env
env/bin/py.test -svx --pdb -rfE -m"wip" tests