blob: 2ffd67d12102a3c2519b6bbb76448c4a0762250e (
plain)
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
|
project := threadloop
flake8 := flake8
pytest := py.test -s --tb short --cov $(project) tests
test_args := --cov-report term-missing --cov-report xml
.DEFAULT_GOAL := test
.PHONY:install
install:
pip install -r requirements-test.txt
python setup.py develop
.PHONY: clean
clean:
@find $(project) tests -name "*.pyc" -delete
.PHONY:test
test: clean lint
PYTHONDONTWRITEBYTECODE=1 $(pytest) $(test_args)
.PHONY: lint
lint:
$(flake8) $(project) tests
|