mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
remove mvncobertura phase
svn path=/nixpkgs/trunk/; revision=23219
This commit is contained in:
parent
f194a8aa93
commit
9e2074f199
@ -17,7 +17,7 @@ in
|
||||
|
||||
stdenv.mkDerivation ( rec {
|
||||
inherit name src;
|
||||
phases = "setupPhase unpackPhase patchPhase mvnCompile ${if doTestCompile then "mvnTestCompile mvnTestJar" else ""} ${if doTest then "mvnTest mvnCobertura" else ""} ${if doJavadoc then "mvnJavadoc" else ""} ${if doCheckstyle then "mvnCheckstyle" else ""} mvnJar mvnAssembly mvnRelease finalPhase";
|
||||
phases = "setupPhase unpackPhase patchPhase mvnCompile ${if doTestCompile then "mvnTestCompile mvnTestJar" else ""} ${if doTest then "mvnTest" else ""} ${if doJavadoc then "mvnJavadoc" else ""} ${if doCheckstyle then "mvnCheckstyle" else ""} mvnJar mvnAssembly mvnRelease finalPhase";
|
||||
|
||||
setupPhase = ''
|
||||
runHook preSetupPhase
|
||||
@ -44,6 +44,16 @@ stdenv.mkDerivation ( rec {
|
||||
|
||||
mvnTest = ''
|
||||
mvn test ${mvnFlags}
|
||||
|
||||
if [ -d target/site/cobertura ] ; then
|
||||
cp -R target/site/cobertura $out/cobertura
|
||||
echo "report cobertura $out/cobertura" >> $out/nix-support/hydra-build-products
|
||||
fi
|
||||
|
||||
if [ -d target/target/surefire-reports ] ; then
|
||||
cp -R target/target/surefire-reports $out/surefire
|
||||
echo "report surefire $out/surefire" >> $out/nix-support/hydra-build-products
|
||||
fi
|
||||
'';
|
||||
|
||||
mvnJavadoc = ''
|
||||
@ -52,12 +62,6 @@ stdenv.mkDerivation ( rec {
|
||||
echo "report javadoc $out/apidocs" >> $out/nix-support/hydra-build-products
|
||||
'';
|
||||
|
||||
mvnCobertura = ''
|
||||
mvn cobertura:cobertura ${mvnFlags}
|
||||
cp -R target/site/cobertura $out/cobertura
|
||||
echo "report cobertura $out/cobertura" >> $out/nix-support/hydra-build-products
|
||||
'';
|
||||
|
||||
mvnCheckstyle = ''
|
||||
mvn checkstyle:checkstyle ${mvnFlags}
|
||||
ensureDir $out/checkstyle
|
||||
|
Loading…
Reference in New Issue
Block a user