2017 © Pedro Peláez
 

library mage-ci

Magento Continuous Integration Tools

image

ecomdev/mage-ci

Magento Continuous Integration Tools

  • Tuesday, October 28, 2014
  • by IvanChepurnyi
  • Repository
  • 15 Watchers
  • 79 Stars
  • 10,696 Installations
  • Shell
  • 7 Dependents
  • 0 Suggesters
  • 35 Forks
  • 4 Open issues
  • 15 Versions
  • 3 % Grown

The README.md

Magento Continuous Integration Tools

A set of tools to help set up a proper environment for testing magento, (*1)

Installation

Installation is very easy though composer.json, (*2)

In your application or dependent library root directory, create a composer.json file. In case you are not familiar with Composer, see composer.json Schema., (*3)

In the require or alternatively in the require-dev section, add the following dependency:, (*4)

"ecomdev/mage-ci": "dev-master"

Usage

Running a batch of PHPUnit tests

$ mage-ci phpunit <directory> <OPTIONS> 
    Runs unit tests for all phpunit.xml or phpunit.dist.xml files in <directory> or its subdirectories. 
    <OPTIONS> will be passed directly to phpunit binary.

Installing a particular Magento version

$ bin/mage-ci install <magento_directory> <version> <db_name> <OPTIONS>
    Installs a Magento version to a specified destination
      -c                  Create databases flag
      -t                  Create test database flag (only in combination with -c option)
      -u  <db_user>       DB Username
      -p  <db_pass>       DB Password
      -r  <sql_base_url>  SQL dumps repository url for a particular Magento version (<sql_base_url>/<version>.sql.gz)
      -f  <sql_dump_file> SQL dump file, if you'd like to preinstall some data and specfied -c option

Installing a Magento module

$ bin/mage-ci install-module <magento_directory> <module_dir_or_vcs_url>
    Installs a Magento module with modman definition 

Updating installed Magento modules

$ bin/mage-ci update-modules <magento_directory>
    Updates all installed modman modules at specified Magento instnace 

Uninstalling Magento version

$ bin/mage-ci uninstall <magento_directory> [<db_name>] <OPTIONS>
    Performs uninstall of Magento instance
      -u  <db_user>       DB Username
      -p  <db_pass>       DB Password

Uninstalling Magento module

$ bin/mage-ci uninstall-module <magento_directory> <module_dir_or_vcs_url>
    Performs uninstall of Magento module from instance

Mass Install of Magento versions

$ bin/mage-ci install-multiple <directory> <prefix> <version1> ... <versionN> <OPTIONS>
    Installs multiple version of magento at <directory> in subdirectories which name is a combined value of <prefix>-<version> 
       -d  <download_dir>  Directory where all downloads are stored
       -u  <db_user>       DB Username
       -p  <db_pass>       DB Password
       -t                  Create test db as well
       -r  <sql_base_url>  SQL dumps repository url for a particular Magento version (<sql_base_url>/<version>.sql.gz)

Dump databases of existing installed versions

$ bin/mage-ci db-dump <directory> <prefix> <version1> ... <versionN> <OPTIONS>
    Creates Magento database dump file at <directory> directory with name <file_prefix><version>.sql.gz, the dumped database is <prefix>_<version>
       -u  <db_user>       DB Username
       -p  <db_pass>       DB Password
       -s  <file_prefix>   sql file prefix

Magento Clean DB Dumps

It is possible to specify base url for downloading of database dump for a particular Magento version. Most of the time clean installation of Magento takes a lot of time, so it is nice to have this clean db dump prepared for each Magento version., (*5)

We created such repository at the following url: http://mage-ci.ecomdev.org, (*6)

You just need to specify it during installation of process:, (*7)

$ bin/mage-ci install magento-1.7.0.2 1.7.0.2 mage_1.7.0.2 -r http://mage-ci.ecomdev.org 

This command will download db dump from the following URL: http://mage-ci.ecomdev.org/1.7.0.2.sql.gz, (*8)

The Versions

28/10 2014

dev-master

9999999-dev https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

28/10 2014

1.0.10

1.0.10.0 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

28/10 2014

dev-develop

dev-develop https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

28/10 2014

dev-release/1.0.10

dev-release/1.0.10 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

08/08 2014

1.0.9

1.0.9.0 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

30/12 2013

1.0.8

1.0.8.0 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

30/12 2013

dev-release/1.0.8

dev-release/1.0.8 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

03/10 2013

1.0.6

1.0.6.0 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

03/10 2013

1.0.7

1.0.7.0 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

23/09 2013

1.0.5

1.0.5.0 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

22/09 2013

1.0.4

1.0.4.0 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

22/09 2013

1.0.3

1.0.3.0 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

24/03 2013

1.0.1

1.0.1.0 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

24/03 2013

1.0.2

1.0.2.0 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0

17/02 2013

1.0.0

1.0.0.0 https://github.com/EcomDev/MageCI

Magento Continuous Integration Tools

  Sources   Download

OSL-3.0