forked from archived-codacy/python-codacy-coverage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 806 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 806 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
32
33
34
35
all: build test install
build:
python setup.py build
install: build
python setup.py develop
test: pep8 pyflakes
sed 's?\$$1?'`pwd`'?' tests/filepath/cobertura.xml.tpl > tests/filepath/cobertura.xml
python setup.py test
rm tests/filepath/cobertura.xml || true
test-all:
tox
coverage:
rm coverage.xml || true
sed 's?\$$1?'`pwd`'?' tests/filepath/cobertura.xml.tpl > tests/filepath/cobertura.xml
coverage run --source src/codacy/ setup.py test
rm tests/filepath/cobertura.xml || true
coverage xml
python-codacy-coverage -r coverage.xml
# requires "pip install pep8"
pep8:
@git ls-files | grep \\.py$ | xargs pep8
# requires "pip install pyflakes"
pyflakes:
@export PYFLAKES_NODOCTEST=1 && \
git ls-files | grep \\.py$ | xargs pyflakes
upload:
python setup.py sdist bdist_wheel upload