2006-12-13 09:34:13 -05:00
|
|
|
#!/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"
|
|
|
|
|
2006-12-13 18:34:52 -05:00
|
|
|
export M2_HOME=$mavenHome
|
|
|
|
|
2006-12-13 09:34:13 -05:00
|
|
|
echo "<?xml version="1.0"?>" > $settings
|
|
|
|
echo "<settings>" >> $settings
|
|
|
|
echo " <localRepository>/tmp/maven/repository</localRepository>" >> $settings
|
|
|
|
echo "</settings>" >> $settings
|
|
|
|
|
2006-12-13 11:09:22 -05:00
|
|
|
echo " Maven version: $mavenVersion"
|
|
|
|
echo "Maven executable: $maven"
|
|
|
|
|
2006-12-13 09:34:13 -05:00
|
|
|
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
|
|
|
|
)
|
2006-12-13 11:53:39 -05:00
|
|
|
|
|
|
|
mavenVersionString=`$maven -v`
|
|
|
|
echo "Maven version: $mavenVersionString (verify)"
|
|
|
|
|
2006-12-13 09:34:13 -05:00
|
|
|
# Build the Maven Integration Tests
|
|
|
|
(
|
|
|
|
cd mits-trunk
|
|
|
|
$maven install
|
|
|
|
(
|
|
|
|
cd core-integration-tests
|
|
|
|
$maven test
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|