Commit e7560b42 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

! Fix travis build

parent ba40a212
...@@ -7,21 +7,22 @@ env: ...@@ -7,21 +7,22 @@ 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:
- MAGE_DIR=tests/magento
# Copying travis composer.json to test only module # Copying travis composer.json to test only module
- cp -f .travis/composer.json composer.json - cp -f .travis/composer.json composer.json
# Installing dependencies # Installing dependencies
- composer install - 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 $MAGE_DIR $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 $MAGE_DIR $(pwd)
# Configuring EcomDev_PHPUnit module # Configuring EcomDev_PHPUnit module
- bin/mage-ci shell ecomdev-phpunit.php -a magento-config --db-name magento --same-db 1 --base_url http://test.magento.com/ - bin/mage-ci shell $MAGE_DIR ecomdev-phpunit.php -a magento-config --db-name magento --same-db 1 --base_url http://test.magento.com/
# Configuring test suite # Configuring test suite
- bin/mage-ci shell ecomdev-phpunit.php -a change-status --enable - bin/mage-ci shell $MAGE_DIR ecomdev-phpunit.php -a change-status --enable
# Fix Magento autoloader to run test # Fix Magento autoloader to run test
- bin/mage-ci shell ecomdev-phpunit.php -a fix-autoloader - bin/mage-ci shell $MAGE_DIR ecomdev-phpunit.php -a fix-autoloader
# Copying phpunit.xml for travis builds # Copying phpunit.xml for travis builds
- cp .travis/phpunit.xml tests/magento/phpunit.xml - cp .travis/phpunit.xml $MAGE_DIR/phpunit.xml
script: script:
- bin/mage-ci phpunit tests/magento --colors --coverage-text - bin/mage-ci phpunit $MAGE_DIR --colors --coverage-text
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