mirror of https://github.com/apache/maven.git
o rough stab at what we want to do in continuum which cannot do this natively yet, though it could run the shell script
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@486674 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cc5a658907
commit
404f7376eb
|
@ -0,0 +1,62 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# We will model what we want here and then get it to work in Continuum
|
||||||
|
|
||||||
|
# Problems
|
||||||
|
# maven-verifier 1.0-SNAPSHOT is not installed
|
||||||
|
|
||||||
|
# We want to do a bootstrap with a
|
||||||
|
# * clean checkout
|
||||||
|
# * clean repository
|
||||||
|
|
||||||
|
# To make sure that everything works starting from scratch
|
||||||
|
|
||||||
|
# * Keep track of everything that was used to build
|
||||||
|
# * Create a new user
|
||||||
|
# * Checkout and build versus taking the binary and running the ITs
|
||||||
|
# * Make sure SVN is installed
|
||||||
|
|
||||||
|
# Assumptions
|
||||||
|
# Ant is installed >1.6.5
|
||||||
|
# Subversion is installed
|
||||||
|
|
||||||
|
# Need to override the local repo
|
||||||
|
# Need a command line option for this
|
||||||
|
|
||||||
|
buildDirectory=/tmp/maven
|
||||||
|
mavenVersion=maven-2.1-SNAPSHOT
|
||||||
|
mavenHome=$buildDirectory/$mavenVersion
|
||||||
|
settings=$buildDirectory/settings.xml
|
||||||
|
maven="$mavenHome/bin/mvn -s $settings"
|
||||||
|
|
||||||
|
echo "<?xml version="1.0"?>" > $settings
|
||||||
|
echo "<settings>" >> $settings
|
||||||
|
echo " <localRepository>/tmp/maven/repository</localRepository>" >> $settings
|
||||||
|
echo "</settings>" >> $settings
|
||||||
|
|
||||||
|
export M2_HOME=$mavenHome
|
||||||
|
|
||||||
|
rm -rf $buildDirectory > /dev/null 2>&1
|
||||||
|
mkdir -p $buildDirectory
|
||||||
|
|
||||||
|
(
|
||||||
|
cd $buildDirectory
|
||||||
|
svn co https://svn.apache.org/repos/asf/maven/components/trunk maven-trunk
|
||||||
|
svn co https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk mits-trunk
|
||||||
|
|
||||||
|
# Build the selected version of Maven
|
||||||
|
(
|
||||||
|
cd maven-trunk
|
||||||
|
ant
|
||||||
|
)
|
||||||
|
|
||||||
|
# Build the Maven Integration Tests
|
||||||
|
(
|
||||||
|
cd mits-trunk
|
||||||
|
$maven install
|
||||||
|
(
|
||||||
|
cd core-integration-tests
|
||||||
|
$maven test
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
Loading…
Reference in New Issue