AOEpeople/MageTestStand

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

MageTestStand

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:

Requirements
General usage
Travis CI configuration

Example .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
Jenkins configuration
nto-ce-1.9.0.1
nto-ce-1.8.1.0
nto-ce-1.8.0.0
nto-ce-1.7.0.2
Unittest your Module directly from bash/zsh/shell

if necessary

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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.