Name: MageTestStand
Owner: AOE
Description: null
Created: 2014-08-23 19:04:16.0
Updated: 2017-09-13 17:41:04.0
Pushed: 2017-10-17 12:13:37.0
Homepage: null
Size: 19637
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This tool is used to build a minimal Magento environment that allows to run PHPUnit tests for a Magento module on Travis CI.
It uses following tools:
MAGENTO_DB_HOST
MAGENTO_DB_PORT
MAGENTO_DB_USER
MAGENTO_DB_PASS
MAGENTO_DB_NAME
MAGENTO_DB_ALLOWSAME
MAGENTO_VERSION
with valid Magento version for n98-magerun's install commandMAGENTO_VERSION
to the desired version, e.g. magento-ce-1.9.0.1WORKSPACE
to the directory of the magento modulecurl -sSL https://raw.githubusercontent.com/AOEpeople/MageTestStand/master/setup.sh | bash
as the build step, this will do everything automatically in a temporary directoryExample .travis.yaml file (in the Magento module you want to test):
uage: php
5.3
5.4
5.5
5.6
hhvm
ix:
low_failures:
php: 5.6
php: hhvm
lobal:
- MAGENTO_DB_ALLOWSAME=1
- SKIP_CLEANUP=1
MAGENTO_VERSION=magento-ce-1.9.0.1
MAGENTO_VERSION=magento-ce-1.8.1.0
MAGENTO_VERSION=magento-ce-1.8.0.0
MAGENTO_VERSION=magento-ce-1.7.0.2
pt:
curl -sSL https://raw.githubusercontent.com/AOEpeople/MageTestStand/master/setup.sh | bash
fications:
ail:
recipients:
- notify@someone.com
on_success: always
on_failure: always
nto-ce-1.9.0.1
nto-ce-1.8.1.0
nto-ce-1.8.0.0
nto-ce-1.7.0.2
curl -sSL https://raw.githubusercontent.com/AOEpeople/MageTestStand/master/setup.sh | bash
rt WORKSPACE=/full/path/to/your/module
rt MAGENTO_VERSION=magento-ce-1.9.0.1
export MAGENTO_DB_HOST=somewhere export MAGENTO_DB_PORT=somenum export MAGENTO_DB_USER=someone export MAGENTO_DB_PASS=something export MAGENTO_DB_NAME=somename
n MageTestStand:
curl -sSL https://raw.githubusercontent.com/AOEpeople/MageTestStand/master/setup.sh | bash
isc
Skip cleanup
ou're running this in an CI environment that will delete the workspace after the run (e.g. Travis CI) you might not want to wait for this script to explicitely cleanup. Using `SKIP_CLEANUP` parameter you can make MageTestStand skip this step.
parameter can be set via an environment variable (Travis CI supports that via env/global) or from command line:
export SKIP_CLEANUP=1