Skip to content

Commit

Permalink
Define to use a customized MageTestStand repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschifftner committed Aug 12, 2017
1 parent a575f8f commit 3f024dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ It uses following tools:
- In case you want to allow EcomDev_PHPUnit to use the main database instead of the test database you can set following environment variable to 1. This might be required if you're planning on writing integration tests.
- `MAGENTO_DB_ALLOWSAME`
- Environment variable `MAGENTO_VERSION` with valid Magento version for n98-magerun's install command
- Define `MAGETESTSTAND_URL` to use a customized MageTestStand repository.

## General usage

Expand Down Expand Up @@ -52,6 +53,7 @@ env:
# global:
# - MAGENTO_DB_ALLOWSAME=1
# - SKIP_CLEANUP=1
# - MAGETESTSTAND_URL=https://github.com/xxxx/MageTestStand.git
- MAGENTO_VERSION=magento-ce-1.9.0.1
- MAGENTO_VERSION=magento-ce-1.8.1.0
- MAGENTO_VERSION=magento-ce-1.8.0.0
Expand Down
15 changes: 9 additions & 6 deletions setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ fi

if [ -z $WORKSPACE ] ; then
echo "No workspace configured, please set your WORKSPACE environment"
exit
exit 1
fi


if [ -z $MAGETESTSTAND_URL ] ; then
MAGETESTSTAND_URL="https://github.com/AOEpeople/MageTestStand.git"
fi

BUILDENV=`mktemp -d /tmp/mageteststand.XXXXXXXX`

echo "Using build directory ${BUILDENV}"

git clone https://github.com/AOEpeople/MageTestStand.git "${BUILDENV}"

echo "Cloning ${MAGETESTSTAND_URL} to ${BUILDENV}"
git clone "${MAGETESTSTAND_URL}" "${BUILDENV}"
cp -rf "${WORKSPACE}" "${BUILDENV}/.modman/"
${BUILDENV}/install.sh
if [ -d "${WORKSPACE}/vendor" ] ; then
Expand Down

0 comments on commit 3f024dc

Please sign in to comment.