Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Define to use a customized MageTestStand repository. #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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