From f02275b8df3d6282b23910f1b66c56f032a35eb6 Mon Sep 17 00:00:00 2001 From: Tobias Schifftner Date: Sat, 12 Aug 2017 21:12:53 +0200 Subject: [PATCH] Define to use a customized MageTestStand repository. --- README.md | 2 ++ setup.sh | 15 +++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) mode change 100644 => 100755 setup.sh diff --git a/README.md b/README.md index 523bfbb..7351197 100755 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/setup.sh b/setup.sh old mode 100644 new mode 100755 index f8ff992..80b00e2 --- a/setup.sh +++ b/setup.sh @@ -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