Commit ba40a212 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

! New travis build structure

parent e19a386b
......@@ -7,22 +7,21 @@ env:
- MAGE=1.6.2.0
- MAGE=1.5.1.0
before_script:
# Fixing Magento hackathon installer
- mkdir -p tests/magento
- composer install --dev
# Copying travis composer.json to test only module
- cp -f .travis/composer.json composer.json
# Installing dependencies
- composer install
# Installing magento version with prepared DB dump
- bin/mage-ci install tests/magento $MAGE magento -c -r http://mage-ci.ecomdev.org
# Installing EcomDev_PHPUnit module
- bin/mage-ci install-module tests/magento $(pwd)
# Configuring EcomDev_PHPUnit module
- CURRENT_DIR=$(pwd)
- cd tests/magento/shell
- bin/mage-ci shell ecomdev-phpunit.php -a magento-config --db-name magento --same-db 1 --base_url http://test.magento.com/
# Configuring test suite
- php ecomdev-phpunit.php -a magento-config --db-name magento --same-db 1 --base_url http://test.magento.com/
- php ecomdev-phpunit.php -a change-status --enable
- php ecomdev-phpunit.php -a fix-autoloader
- cd $CURRENT_DIR
- bin/mage-ci shell ecomdev-phpunit.php -a change-status --enable
# Fix Magento autoloader to run test
- bin/mage-ci shell ecomdev-phpunit.php -a fix-autoloader
# Copying phpunit.xml for travis builds
- cp .travis.phpunit.xml tests/magento/phpunit.xml
- cp .travis/phpunit.xml tests/magento/phpunit.xml
script:
- 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 @@
"magento-hackathon/magento-composer-installer": "*",
"phpunit/phpunit": "3.7.*"
},
"require-dev": {
"ecomdev/mage-ci": "dev-master"
},
"authors":[
{
"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