Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/EcomDev/MageCI

[ABADONED] Magento Continuous Integration Tools
https://github.com/EcomDev/MageCI

Last synced: 25 days ago
JSON representation

[ABADONED] Magento Continuous Integration Tools

Awesome Lists containing this project

README

        

Magento Continuous Integration Tools
===================================

A set of tools to help set up
a proper environment for testing magento

Installation
------------

Installation is very easy though composer.json

In your application or dependent library root directory, create a _composer.json_ file.
In case you are not familiar with [Composer](http://getcomposer.org/), see [composer.json Schema](http://getcomposer.org/doc/04-schema.md).

In the _require_ or alternatively in the _require-dev_ section, add the following dependency:

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

Usage
-----

### Running a batch of PHPUnit tests
$ mage-ci phpunit
Runs unit tests for all phpunit.xml or phpunit.dist.xml files in or its subdirectories.
will be passed directly to phpunit binary.

### Installing a particular Magento version
$ bin/mage-ci install
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 Username
-p DB Password
-r SQL dumps repository url for a particular Magento version (/.sql.gz)
-f SQL dump file, if you'd like to preinstall some data and specfied -c option

### Installing a Magento module
$ bin/mage-ci install-module
Installs a Magento module with modman definition

### Updating installed Magento modules
$ bin/mage-ci update-modules
Updates all installed modman modules at specified Magento instnace

### Uninstalling Magento version
$ bin/mage-ci uninstall []
Performs uninstall of Magento instance
-u DB Username
-p DB Password

### Uninstalling Magento module
$ bin/mage-ci uninstall-module
Performs uninstall of Magento module from instance

### Mass Install of Magento versions
$ bin/mage-ci install-multiple ...
Installs multiple version of magento at in subdirectories which name is a combined value of -
-d Directory where all downloads are stored
-u DB Username
-p DB Password
-t Create test db as well
-r SQL dumps repository url for a particular Magento version (/.sql.gz)

### Dump databases of existing installed versions
$ bin/mage-ci db-dump ...
Creates Magento database dump file at directory with name .sql.gz, the dumped database is _
-u DB Username
-p DB Password
-s 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.

We created such repository at the following url:
http://mage-ci.ecomdev.org

You just need to specify it during installation of process:

$ 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