-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
47 lines (39 loc) · 1.12 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
.PHONY: clean clean-test clean-pyc clean-build docs help
.DEFAULT_GOAL := help
CLASS_PATH = metaci
define BROWSER_PYSCRIPT
import os, webbrowser, sys
try:
from urllib import pathname2url
except:
from urllib.request import pathname2url
webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1])))
endef
export BROWSER_PYSCRIPT
BROWSER := python -c "$$BROWSER_PYSCRIPT"
clean-test:
rm -rf .tox/
rm -f .coverage
rm -rf htmlcov/
rm -f output.xml
rm -f report.html
test:
pytest
# Use CLASS_PATH to run coverage for a subset of tests.
# $ make coverage CLASS_PATH="cumulusci/core/tests"
coverage: clean-test
coverage run --source $(CLASS_PATH) -m pytest $(CLASS_PATH)
coverage report -m
coverage html
$(BROWSER) htmlcov/index.html
update-deps:
pip-compile --upgrade requirements/prod.in
pip-compile --upgrade requirements/dev.in
update-deps-cci:
pip-compile --upgrade-package cumulusci requirements/dev.in -o requirements/dev.txt
pip-compile --upgrade-package cumulusci requirements/prod.in -o requirements/prod.txt
dev-install:
pip install pip-tools
pip-sync requirements/*.txt
start:
honcho start web dev_worker