#!/bin/bash
set -x

wget -q http://porkchop.devel.redhat.com/released/JBossFuse/6.1.0/jboss-fuse-full-6.1.0.redhat-379.zip
wget -q http://porkchop.devel.redhat.com/released/JBossDG/6.3.1/jboss-datagrid-6.3.1-server.zip
wget -q http://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/JDG/view/QE/job/fsw-60-build/lastSuccessfulBuild/artifact/fsw.zip

unzip -q jboss-datagrid-6.3.1-server.zip
unzip -q fsw.zip

mvn -f tests/pom.xml -s maven-settings.xml -Dmaven.test.failure.ignore=true -Dsurefire.timeout=600 clean install -Dfuse.zip=`pwd`/jboss-fuse-full-6.1.0.redhat-379.zip -Dfsw.home=`pwd`/jboss-eap-6.1 -Djdg.home=`pwd`/jboss-datagrid-6.3.1-server -Dmaven.repo.local=${HOME}/.m2/jdg-mead-repository
