forked from lyft/python-blessclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 651 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 651 Bytes
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
# bash needed for pipefail
SHELL := /bin/bash
# Pull in persistant config
-include ~/.blessclient.cfg
.PHONY: client
client:
virtualenv venv
venv/bin/pip install -e .
ln -s venv/bin/blessclient ./blessclient.run
.PHONY: clean
clean:
rm -rf blessclient.run coverage.xml .coverage blessclient.egg-info/ build/ venv/
find . -name "*.pyc" -type f -delete
.PHONY: develop
develop:
pip install -r requirements-dev.txt
.PHONY: test
test: test_lint test_unit
test_lint:
mkdir -p build
set -o pipefail; flake8 | sed "s#^\./##" > build/flake8.txt || (cat build/flake8.txt && exit 1)
.PHONY: test_unit
test_unit:
py.test --cov=blessclient tests/