summary refs log tree commit diff
path: root/pkgs/build-support/release
diff options
context:
space:
mode:
authorRob Vermaas <rob.vermaas@gmail.com>2010-08-19 12:24:14 +0000
committerRob Vermaas <rob.vermaas@gmail.com>2010-08-19 12:24:14 +0000
commit12bfda97b8a7387c28e30b4d458a849c4bcff58a (patch)
tree90bf9ec2db1b60ae9d6c405ac890afd2fa5175ae /pkgs/build-support/release
parent435ba71ac065e12b8c982534252ac5dea66a4688 (diff)
downloadnixlib-12bfda97b8a7387c28e30b4d458a849c4bcff58a.tar
nixlib-12bfda97b8a7387c28e30b4d458a849c4bcff58a.tar.gz
nixlib-12bfda97b8a7387c28e30b4d458a849c4bcff58a.tar.bz2
nixlib-12bfda97b8a7387c28e30b4d458a849c4bcff58a.tar.lz
nixlib-12bfda97b8a7387c28e30b4d458a849c4bcff58a.tar.xz
nixlib-12bfda97b8a7387c28e30b4d458a849c4bcff58a.tar.zst
nixlib-12bfda97b8a7387c28e30b4d458a849c4bcff58a.zip
maven-build: if surefire was run, generate html and add to result
svn path=/nixpkgs/trunk/; revision=23246
Diffstat (limited to 'pkgs/build-support/release')
-rw-r--r--pkgs/build-support/release/maven-build.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/build-support/release/maven-build.nix b/pkgs/build-support/release/maven-build.nix
index c8753c98fa02..093e6ccc7ef2 100644
--- a/pkgs/build-support/release/maven-build.nix
+++ b/pkgs/build-support/release/maven-build.nix
@@ -47,12 +47,14 @@ stdenv.mkDerivation ( rec {
 
     if [ -d target/site/cobertura ] ; then
       cp -R target/site/cobertura $out/cobertura
-      echo "report cobertura $out/cobertura" >> $out/nix-support/hydra-build-products
+      echo "report coverage $out/cobertura" >> $out/nix-support/hydra-build-products
     fi
 
     if [ -d target/surefire-reports ] ; then
-      cp -R target/surefire-reports $out/surefire
-      echo "report surefire $out/surefire" >> $out/nix-support/hydra-build-products
+      mvn surefire-report:report-only
+      cp -vR target/surefire-reports $out/surefire
+      cp -v target/site/surefire-report.html $out/surefire/index.html
+      echo "report coverage $out/surefire/index.html" >> $out/nix-support/hydra-build-products
     fi
   '';