Commit ba40a212 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

! New travis build structure

parent e19a386b
...@@ -7,22 +7,21 @@ env: ...@@ -7,22 +7,21 @@ env:
- MAGE=1.6.2.0 - MAGE=1.6.2.0
- MAGE=1.5.1.0 - MAGE=1.5.1.0
before_script: before_script:
# Fixing Magento hackathon installer # Copying travis composer.json to test only module
- mkdir -p tests/magento - cp -f .travis/composer.json composer.json
- composer install --dev # Installing dependencies
- composer install
# Installing magento version with prepared DB dump # Installing magento version with prepared DB dump
- bin/mage-ci install tests/magento $MAGE magento -c -r http://mage-ci.ecomdev.org - bin/mage-ci install tests/magento $MAGE magento -c -r http://mage-ci.ecomdev.org
# Installing EcomDev_PHPUnit module # Installing EcomDev_PHPUnit module
- bin/mage-ci install-module tests/magento $(pwd) - bin/mage-ci install-module tests/magento $(pwd)
# Configuring EcomDev_PHPUnit module # Configuring EcomDev_PHPUnit module
- CURRENT_DIR=$(pwd) - bin/mage-ci shell ecomdev-phpunit.php -a magento-config --db-name magento --same-db 1 --base_url http://test.magento.com/
- cd tests/magento/shell
# Configuring test suite # Configuring test suite
- php ecomdev-phpunit.php -a magento-config --db-name magento --same-db 1 --base_url http://test.magento.com/ - bin/mage-ci shell ecomdev-phpunit.php -a change-status --enable
- php ecomdev-phpunit.php -a change-status --enable # Fix Magento autoloader to run test
- php ecomdev-phpunit.php -a fix-autoloader - bin/mage-ci shell ecomdev-phpunit.php -a fix-autoloader
- cd $CURRENT_DIR
# Copying phpunit.xml for travis builds # Copying phpunit.xml for travis builds
- cp .travis.phpunit.xml tests/magento/phpunit.xml - cp .travis/phpunit.xml tests/magento/phpunit.xml
script: script:
- bin/mage-ci phpunit tests/magento --colors --coverage-text - bin/mage-ci phpunit tests/magento --colors --coverage-text
{
"require": {
"phpunit/phpunit": "*",
"ecomdev/mage-ci": "*"
},
"config": {
"bin-dir": "bin"
},
"extra":{
"magento-root-dir": "tests/magento"
}
}
\ No newline at end of file
...@@ -8,18 +8,9 @@ ...@@ -8,18 +8,9 @@
"magento-hackathon/magento-composer-installer": "*", "magento-hackathon/magento-composer-installer": "*",
"phpunit/phpunit": "3.7.*" "phpunit/phpunit": "3.7.*"
}, },
"require-dev": {
"ecomdev/mage-ci": "dev-master"
},
"authors":[ "authors":[
{ {
"name":"Ivan Chepurnyi" "name":"Ivan Chepurnyi"
} }
], ]
"config": {
"bin-dir": "bin"
},
"extra":{
"magento-root-dir": "tests/magento"
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment