mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 04:57:56 +03:00
maven-build: copy whole site dir and adapted hydra-build-products
svn path=/nixpkgs/trunk/; revision=23691
This commit is contained in:
parent
7b4678b6d8
commit
b601947bcb
@ -46,30 +46,23 @@ stdenv.mkDerivation ( rec {
|
|||||||
mvn test ${mvnFlags}
|
mvn test ${mvnFlags}
|
||||||
|
|
||||||
if [ -d target/site/cobertura ] ; then
|
if [ -d target/site/cobertura ] ; then
|
||||||
cp -R target/site/cobertura $out/cobertura
|
echo "report coverage $out/site/cobertura" >> $out/nix-support/hydra-build-products
|
||||||
echo "report coverage $out/cobertura" >> $out/nix-support/hydra-build-products
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d target/surefire-reports ] ; then
|
if [ -d target/surefire-reports ] ; then
|
||||||
mvn surefire-report:report-only
|
mvn surefire-report:report-only
|
||||||
cp -vR target/surefire-reports $out/surefire
|
echo "report coverage $out/site/surefire-report.html" >> $out/nix-support/hydra-build-products
|
||||||
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
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
mvnJavadoc = ''
|
mvnJavadoc = ''
|
||||||
mvn javadoc:javadoc ${mvnFlags}
|
mvn javadoc:javadoc ${mvnFlags}
|
||||||
cp -R target/site/apidocs $out/apidocs
|
echo "report javadoc $out/site/apidocs" >> $out/nix-support/hydra-build-products
|
||||||
echo "report javadoc $out/apidocs" >> $out/nix-support/hydra-build-products
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
mvnCheckstyle = ''
|
mvnCheckstyle = ''
|
||||||
mvn checkstyle:checkstyle ${mvnFlags}
|
mvn checkstyle:checkstyle ${mvnFlags}
|
||||||
ensureDir $out/checkstyle
|
echo "report checkstyle $out/site/checkstyle.html" >> $out/nix-support/hydra-build-products
|
||||||
cp -R target/site/checkstyle.* $out/checkstyle/
|
|
||||||
cp -R target/site/images $out/checkstyle/images
|
|
||||||
echo "report checkstyle $out/checkstyle/checkstyle.html" >> $out/nix-support/hydra-build-products
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
mvnJar = ''
|
mvnJar = ''
|
||||||
@ -82,7 +75,7 @@ stdenv.mkDerivation ( rec {
|
|||||||
|
|
||||||
mvnRelease = ''
|
mvnRelease = ''
|
||||||
ensureDir $out/release
|
ensureDir $out/release
|
||||||
ls -l target/
|
|
||||||
zip=$(ls target/*.zip| head -1)
|
zip=$(ls target/*.zip| head -1)
|
||||||
releaseName=$(basename $zip .zip)
|
releaseName=$(basename $zip .zip)
|
||||||
releaseName="$releaseName-r${toString src.rev}"
|
releaseName="$releaseName-r${toString src.rev}"
|
||||||
@ -96,8 +89,7 @@ ls -l target/
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
finalPhase = ''
|
finalPhase = ''
|
||||||
ensureDir $out/site
|
cp -R target/site $out/
|
||||||
cp -R src/test/site/* $out/site
|
|
||||||
'';
|
'';
|
||||||
} // args
|
} // args
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user