forked from allankp/pytest-testrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (30 loc) · 989 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
define HELP
This is the pytest testrail project Makefile.
Usage:
make requirements - Install dependencies
make coverage - Run coverage analysis
make lint - Run static analysis
make test - Run static analysis, tests with coverage
make quicktest - Run tests without coverage
make cleantest - Run tests cleaning tox environment first
make clean - Remove generated files
endef
export HELP
.PHONY: all clean help lint quicktest requirements test
all help:
@echo "$$HELP"
lint:
flake8 pytest_testrail | tee pytest_testrail.txt
requirements: .requirements.txt
.requirements.txt: requirements/*.txt
pip install -r requirements/base.txt
pip freeze > $@
README.rst: README.md
pandoc --from=markdown --to=rst --output=README.rst README.md
test: coverage lint
tox
coverage:
tox -e coverage
clean:
rm -rf .cache .coverage .tox pytests_py*-test.xml pytest_testrail.egg-info pytest_testrail.txt pytests_coverage.xml
find . -name '*.pyc' -delete