2005-11-15 22:43:28 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2005-11-16 00:56:00 -05:00
|
|
|
ARGS=$@
|
2005-11-16 06:25:11 -05:00
|
|
|
ORIG_ARGS=$ARGS
|
2005-11-15 22:43:28 -05:00
|
|
|
|
|
|
|
(
|
|
|
|
cd bootstrap/bootstrap-mini
|
|
|
|
./build
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
2005-11-16 00:56:00 -05:00
|
|
|
java -jar target/bootstrap-mini.jar install $ARGS
|
2005-11-15 22:43:28 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|
2005-11-16 07:31:08 -05:00
|
|
|
BOOTSTRAP_JAR=bootstrap-mini/target/bootstrap-mini.jar
|
2005-11-15 22:43:28 -05:00
|
|
|
|
|
|
|
(
|
|
|
|
cd bootstrap/bootstrap-installer
|
2005-11-16 03:29:06 -05:00
|
|
|
java -jar ../$BOOTSTRAP_JAR package $ARGS
|
2005-11-15 22:43:28 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|
2005-11-16 08:31:15 -05:00
|
|
|
PLUGINS_DIR=../plugins
|
2005-11-16 06:25:11 -05:00
|
|
|
if [ -d $PLUGINS_DIR ]; then
|
|
|
|
ARGS="$ARGS --build-plugins --plugins-directory=$PLUGINS_DIR"
|
|
|
|
fi
|
|
|
|
|
2005-11-16 07:31:08 -05:00
|
|
|
# TODO: get rid of M2_HOME once integration tests are in here
|
|
|
|
java -jar bootstrap/bootstrap-installer/target/bootstrap-installer.jar --prefix=`dirname $M2_HOME` $ARGS
|
2005-11-16 03:29:06 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|
2005-11-16 06:25:11 -05:00
|
|
|
ARGS=$ORIG_ARGS
|
|
|
|
|
2005-11-16 03:29:06 -05:00
|
|
|
(
|
|
|
|
# TODO: should w ebe going back to the mini now that we have the real thing?
|
|
|
|
cd maven-core-it-verifier
|
|
|
|
java -jar ../bootstrap/$BOOTSTRAP_JAR package $ARGS
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
2005-11-16 00:56:00 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|
|
|
|
(
|
|
|
|
cd ./maven-core-it
|
|
|
|
echo
|
|
|
|
echo "Running maven-core integration tests ..."
|
|
|
|
echo
|
|
|
|
./maven-core-it.sh $ARGS
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
2005-11-15 22:43:28 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|