summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-10-17 19:06:51 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-10-18 10:06:47 (GMT)
commitafe789b14ca03734d8012c79ffee2992b59d5fbb (patch)
tree2f875edda100f2b55b011199f872c519826c5f34 /Makefile
parent459fcb740dc21da81e5434f3c0aa7fe532ffc442 (diff)
downloadstroke-afe789b14ca03734d8012c79ffee2992b59d5fbb.zip
stroke-afe789b14ca03734d8012c79ffee2992b59d5fbb.tar.bz2
Add findbugs and cobertura XML results.
Change-Id: Ic7adcf9790429c23b9493ec22324198bfc474b6f
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index dd434e8..38041b0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,6 @@
all: dist/lib/stroke.jar
-DEFINES = -Dxpp-dir=third-party/xpp -Djzlib-dir=third-party/jzlib -Dicu4j-dir=third-party/ -Dstax2-dir=third-party/stax2/ -Daalto-dir=third-party/aalto/ -Dcobertura-jar=third-party/cobertura/cobertura.jar -Djakarta-oro-jar=third-party/cobertura/lib/jakarta-oro-2.0.8.jar -Dlog4j-jar=third-party/cobertura/lib/log4j-1.2.9.jar -Dasm-jar=third-party/cobertura/lib/asm-3.0.jar -Dasm-tree-jar=third-party/cobertura/lib/asm-tree-3.0.jar
-
+DEFINES = -Dxpp-dir=third-party/xpp -Djzlib-dir=third-party/jzlib -Dicu4j-dir=third-party/ -Dstax2-dir=third-party/stax2/ -Daalto-dir=third-party/aalto/
JUNIT ?= /usr/share/junit/junit.jar
.PHONY : clean
@@ -18,8 +17,8 @@ dist/lib/stroke.jar: third-party/jzlib/jzlib.jar third-party/icu4j.jar third-par
ant ${DEFINES}
.PHONY : test
-test: dist/lib/stroke.jar third-party/cobertura/cobertura.jar
- ant ${DEFINES} -DJUNIT_JAR=${JUNIT} test
+test: dist/lib/stroke.jar third-party/cobertura/cobertura.jar third-party/findbugs/lib/findbugs.jar
+ ant ${DEFINES} -DJUNIT_JAR=${JUNIT} -Dcobertura-jar=third-party/cobertura/cobertura.jar -Djakarta-oro-jar=third-party/cobertura/lib/jakarta-oro-2.0.8.jar -Dlog4j-jar=third-party/cobertura/lib/log4j-1.2.9.jar -Dasm-jar=third-party/cobertura/lib/asm-3.0.jar -Dasm-tree-jar=third-party/cobertura/lib/asm-tree-3.0.jar -Dfindbugs.home=third-party/findbugs test
third-party/aalto/aalto-xml.jar:
mkdir -p third-party/aalto
@@ -47,6 +46,12 @@ third-party/cobertura/cobertura.jar:
tar -xvjf third-party/cobertura-1.9.4.1-bin.tar.bz2 -C third-party/
mv third-party/cobertura-1.9.4.1 third-party/cobertura
+third-party/findbugs/lib/findbugs.jar:
+ mkdir -p third-party
+ curl -L 'http://prdownloads.sourceforge.net/findbugs/findbugs-2.0.1.tar.gz?download' -o third-party/findbugs-2.0.1.tar.gz
+ tar -xvzf third-party/findbugs-2.0.1.tar.gz -C third-party/
+ mv third-party/findbugs-2.0.1 third-party/findbugs
+
.git/hooks/commit-msg:
curl -k https://git.swift.im/review/tools/hooks/commit-msg -o .git/hooks/commit-msg
chmod u+x .git/hooks/commit-msg