forked from bobuss/python-jenkins-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 675 Bytes
/
Makefile
File metadata and controls
26 lines (19 loc) · 675 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
SRC_DIR=.
all: clean sloc test flakes lint clone
sloc:
sloccount --duplicates --wide --details $(SRC_DIR) | fgrep -v .git > sloccount.sc || :
test:
cd $(SRC_DIR) && nosetests --verbose --with-xunit --xunit-file=../xunit.xml --with-xcoverage --xcoverage-file=../coverage.xml || :
flakes:
find $(SRC_DIR) -name *.py|egrep -v '^./tests/'|xargs pyflakes > pyflakes.log || :
lint:
find $(SRC_DIR) -name *.py|egrep -v '^./tests/' | xargs pylint --output-format=parseable --reports=y > pylint.log || :
clone:
clonedigger --cpd-output $(SRC_DIR) || :
clean:
rm -f pyflakes.log
rm -f pylint.log
rm -f sloccount.sc
rm -f output.xml
rm -f coverage.xml
rm -f xunit.xml