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:
Jason van Zyl 2006-12-13 14:34:13 +00:00
parent cc5a658907
commit 404f7376eb
1 changed files with 62 additions and 0 deletions

62
ci.sh Executable file
View File

@ -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
)
)
)