1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

maven-build: if surefire was run, generate html and add to result

svn path=/nixpkgs/trunk/; revision=23246
This commit is contained in:
Rob Vermaas 2010-08-19 12:24:14 +00:00
parent 435ba71ac0
commit 12bfda97b8

View file

@ -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
'';