Last active
August 29, 2015 14:06
-
-
Save bastianccm/37f6a9b9b1faebbd2efd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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