diff options
Diffstat (limited to 'test/utils.bash')
-rwxr-xr-x[-rw-r--r--] | test/utils.bash | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/utils.bash b/test/utils.bash index 3a9d425..3c3f33f 100644..100755 --- a/test/utils.bash +++ b/test/utils.bash @@ -16,6 +16,9 @@ setup() { mkdir $BATS_TMPDIR/app.sh cd $BATS_TMPDIR/app.sh + REPO=$BATS_TMPDIR/repo + REPO_URL="file://$REPO" + if [ "`declare -f setup_inner >/dev/null; echo $?`" = 0 ] then setup_inner @@ -36,6 +39,15 @@ mkzip() { ) } +install_artifact() { + if [ ! -f $REPO/org/example/app-a/1.0-SNAPSHOT/maven-metadata.xml ] + then + mvn deploy:deploy-file -Durl=$REPO_URL \ + -Dfile=`echo $APPSH_HOME/test/data/app-a.zip` -DgeneratePom \ + -DgroupId=org.example -DartifactId=app-a -Dversion=1.0-SNAPSHOT -Dpackaging=zip + fi +} + app() { echo app $@ run $APPSH_HOME/app $@ |