maven/its/test.sh
Jason van Zyl 7a8875f413 o clean up some poms
o record usage of support artifacts


git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@468273 13f79535-47bb-0310-9956-ffa450edef68
2006-10-27 05:00:37 +00:00

35 lines
1.6 KiB
Bash
Executable File

#!/bin/sh
# Prototyping running the integration tests locally without a network connection given that you have
# all the dependencies required to run maven already downloaded. I've tried to make the integration
# testing completely self-contained. I'm using a shell script but this will eventually be
# tied up with the invoker/embedder.
OPTS="--settings settings.xml -Pmode-local-offline"
# This will gather all the requirements for the integration tests. After downloading, build and
# installing all the modules you should have a local repository with everything you need so that
# you can work offline
#mvn --settings settings.xml install
# This should deploy all the integration testing artifacts into out filesystem-based, offline
# remote repository. This is just sitting in your filesystem.
rm -rf /tmp/mits/repository-remote
mvn $OPTS deploy
# Need to build the support artifacts and put them in the remote repo. I can't put these in a reactor
# because all the artifacts have the same id.
mvn $OPTS -f core-integration-testing-support/1.0/pom.xml deploy
mvn $OPTS -f core-integration-testing-support/1.1/pom.xml deploy
mvn $OPTS -f core-integration-testing-support/1.1-old-location/pom.xml deploy
mvn $OPTS -f core-integration-testing-support/1.2/pom.xml deploy
mvn $OPTS -f core-integration-testing-support/1.3/pom.xml deploy
mvn $OPTS -f core-integration-testing-support/1.4/pom.xml deploy
# Remove all integration testing artifacts that were installed in the local repository as many tests
# download and verify the download.
#rm -rf /tmp/mits/repository-local/org/apache/maven/its
# Now run the integration tests
#mvn $OPTS deploy