-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile
36 lines (25 loc) · 576 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
name = virt-who
version = 0.18
.PHONY: pack install srpm rpm rpmlint
release:
tito tag
pack:
tito build --tgz -o .
install:
python setup.py install
srpm:
tito build --srpm --test
rpm:
tito build --rpm --test
rpmlint:
$(eval tmpdir := $(shell mktemp -d))
tito build --srpm --test -o $(tmpdir)
tito build --rpm --test -o $(tmpdir)
rpmlint $(name).spec $(tmpdir)/*
rm -rf $(tmpdir)
test:
PYTHONPATH=. py.test
coverage:
PYTHONPATH=. py.test -k 'not complex' --cov=. --cov-report=html --cov-report=term --cov-config .coveragerc
stylish:
PYTHONPATH=. flake8