Skip to content

Instantly share code, notes, and snippets.

@bastianccm
Last active August 29, 2015 14:06
Show Gist options
  • Save bastianccm/37f6a9b9b1faebbd2efd to your computer and use it in GitHub Desktop.
Save bastianccm/37f6a9b9b1faebbd2efd to your computer and use it in GitHub Desktop.
set -e
set -x
# check if this is a travis environment
function cleanup {
echo "Removing build directory ${BUILDENV}"
rm -rf ${BUILDENV}
}
trap cleanup EXIT
if [ ! -z $TRAVIS_BUILD_DIR ]
then
WORKSPACE=$TRAVIS_BUILD_DIR
fi
BUILDENV=`mktemp -d`
echo "Using build directory ${BUILDENV}"
git clone https://github.com/AOEpeople/MageTestStand.git ${BUILDENV}
cp -rf ${WORKSPACE} ${BUILDENV}/.modman/
${BUILDENV}/install.sh
cd ${BUILDENV}/htdocs
${BUILDENV}/bin/phpunit --colors -d display_errors=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment