forked from pact-foundation/pact-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (40 loc) · 934 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
46
47
48
49
50
51
52
53
54
55
56
DOCS_DIR := ./docs
help:
@echo ""
@echo " clean to clear build and distribution directories"
@echo " deps to install the required files for development"
@echo " e2e to run the end to end tests"
@echo " package to create a distribution package in /dist/"
@echo " release to perform a release build, including deps, test, and package targets"
@echo " test to run all tests"
@echo ""
.PHONY: release
release: deps test package
.PHONY: clean
clean:
rm -rf build
rm -rf dist
rm -rf pact/bin
.PHONY: deps
deps:
pip install -r requirements_dev.txt -e .
define E2E
cd examples/e2e
pip install -r requirements.txt
pytest tests/test_user_consumer.py
./verify_pact.sh
endef
export E2E
.PHONY: e2e
e2e:
bash -c "$$E2E"
.PHONY: package
package:
python setup.py sdist
.PHONY: test
test: deps
flake8
pydocstyle pact
coverage erase
tox
coverage report -m --fail-under=100