From 25aee7164e9d460028ac5b22098628404f841e42 Mon Sep 17 00:00:00 2001 From: Khalid Shakir Date: Thu, 30 Jan 2014 17:47:54 +0800 Subject: [PATCH] Fixed missing "mvn" command execution in ant-bridge. Added pom.xml workarounds for duplicate classpath error, due to gatk-framework dependency containing required BaseTest, and jarred *UnitTest/*IntegrationTest classes that also exist as files under target/test-classes. --- ant-bridge.sh | 6 ++-- pom.xml | 23 +++++++-------- public/external-example/pom.xml | 5 +--- public/gatk-framework/pom.xml | 34 ++++++++++++++++++++++ public/package-tests/pom.xml | 51 +++++++++++++++++++++++++++------ public/sting-root/pom.xml | 7 +---- 6 files changed, 93 insertions(+), 33 deletions(-) diff --git a/ant-bridge.sh b/ant-bridge.sh index f374cd99e..e9af3e749 100755 --- a/ant-bridge.sh +++ b/ant-bridge.sh @@ -87,7 +87,7 @@ for arg in "${@}" ; do # TODO: This runs *all* commit tests, including the few on Queue. elif [ "${arg}" = "gatkfull.binary.release.tests" ] ; then local_repo="sitetemprepo" - mvn_args="install -Dmaven.repo.local=${local_repo} && verify" + mvn_args="install -Dmaven.repo.local=${local_repo} && mvn verify" mvn_args="${mvn_args} -Dmaven.repo.local=${local_repo} -Dmaven.javadoc.skip=true" mvn_args="${mvn_args} -Dsting.generate-gatk-extensions.skipped=true" mvn_args="${mvn_args} -Dsting.jar.phase=none -Dsting.unpack.phase=none -Dsting.shade.phase=none" @@ -96,7 +96,7 @@ for arg in "${@}" ; do # TODO: This runs only the pipeline tests (full, non-dry run), but not the commit tests for Queue. elif [ "${arg}" = "queuefull.binary.release.tests" ] ; then local_repo="sitetemprepo" - mvn_args="install -Dmaven.repo.local=${local_repo} && verify" + mvn_args="install -Dmaven.repo.local=${local_repo} && mvn verify" mvn_args="${mvn_args} -Dmaven.repo.local=${local_repo} -Dmaven.javadoc.skip=true" mvn_args="${mvn_args} -Dsting.generate-gatk-extensions.skipped=true" mvn_args="${mvn_args} -Dsting.jar.phase=none -Dsting.unpack.phase=none -Dsting.shade.phase=none" @@ -153,6 +153,6 @@ if [ "${unknown_args}" != "" ]; then else echo "Equivalent maven command" echo "${mvn_cmd}${mvn_properties}${post_script}" - sh -c "${mvn_cmd}${mvn_properties}${post_script}" +# sh -c "${mvn_cmd}${mvn_properties}${post_script}" fi diff --git a/pom.xml b/pom.xml index 787bd5d31..2100556ed 100644 --- a/pom.xml +++ b/pom.xml @@ -508,6 +508,9 @@ + package-unittests @@ -517,11 +520,10 @@ test - - unittests - ${sting.packageunittests.skipped} + true + false ${sting.packageunittests.skipped} @@ -536,11 +538,10 @@ verify - - integrationtests - ${sting.packageintegrationtests.skipped} + true + false ${sting.packageintegrationtests.skipped} @@ -555,11 +556,10 @@ verify - - integrationtests - ${sting.packagepipelinetests.skipped} + true + false ${sting.packagepipelinetests.skipped} @@ -574,11 +574,10 @@ verify - - integrationtests - ${sting.packagelargescaletests.skipped} + true + false ${sting.packagelargescaletests.skipped} diff --git a/public/external-example/pom.xml b/public/external-example/pom.xml index 37739bfda..5aba7ab26 100644 --- a/public/external-example/pom.xml +++ b/public/external-example/pom.xml @@ -211,11 +211,8 @@ false - **/*Test.class + **/*UnitTest.class - - **/*IntegrationTest.class - diff --git a/public/gatk-framework/pom.xml b/public/gatk-framework/pom.xml index f4443a2f6..1443c7037 100644 --- a/public/gatk-framework/pom.xml +++ b/public/gatk-framework/pom.xml @@ -88,21 +88,55 @@ + org.apache.maven.plugins maven-invoker-plugin package-unittests + + + true + + package-integrationtests + + + true + + package-largescaletests + + + true + + package-pipelinetests + + + true + + diff --git a/public/package-tests/pom.xml b/public/package-tests/pom.xml index 3d1bc1136..3483f4da3 100644 --- a/public/package-tests/pom.xml +++ b/public/package-tests/pom.xml @@ -2,6 +2,10 @@ 4.0.0 + + org.broadinstitute.sting sting-root @@ -15,6 +19,10 @@ ${project.basedir}/../.. + true + true + true + true @@ -39,14 +47,6 @@ cofoja - - ${project.groupId} - gatk-framework - ${project.version} - test-jar - test - - org.testng testng @@ -65,8 +65,36 @@ + + + include-gatk-framework-tests + + + disable.gatk-framework.test.dependency + false + + + + + ${project.groupId} + gatk-framework + ${project.version} + test-jar + test + + + unittests + + false + + unittests.profile.enabled + true + + @@ -101,6 +129,13 @@ integrationtests + + false + + integrationtests.profile.enabled + true + + diff --git a/public/sting-root/pom.xml b/public/sting-root/pom.xml index 1309175bb..83e9b21aa 100644 --- a/public/sting-root/pom.xml +++ b/public/sting-root/pom.xml @@ -389,13 +389,8 @@ ${sting.unittests.skipped} - **/*Test.class + **/*UnitTest.class - - **/*IntegrationTest.class - **/*PipelineTest.class - **/*LargeScaleTest.class -