This repository has been archived by the owner on May 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
! Add Travis build information + new shell commands
- Loading branch information
1 parent
2b9963d
commit 9b85f00
Showing
8 changed files
with
368 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
language: php | ||
php: | ||
- 5.3 | ||
- 5.4 | ||
env: | ||
- MAGE=1.7.0.2 | ||
- MAGE=1.6.2.0 | ||
- MAGE=1.5.1.0 | ||
before_script: | ||
# Fixing Magento hackathon installer | ||
- mkdir -p tests/magento | ||
# Installing required composer packages | ||
- composer update --dev | ||
# Installing magento version with prepared DB dump | ||
- bin/mage-ci install tests/magento $MAGE magento -c -t -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 | ||
- 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 | ||
- cd $CURRENT_DIR | ||
script: | ||
- bin/mage-ci phpunit tests/magento --colors --coverage-text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,7 @@ | |
</url> | ||
</web> | ||
</default> | ||
<phpunit> | ||
<allow_same_db>0</allow_same_db> | ||
</phpunit> | ||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
# EcomDev_PHPUnit definition | ||
app/etc/modules/EcomDev_*.xml app/etc/modules/ | ||
app/etc/modules/*.xml app/etc/modules/ | ||
app/code/community/EcomDev/* app/code/community/EcomDev/ | ||
lib/EcomDev/* lib/EcomDev/ | ||
lib/Spyc lib/Spyc | ||
lib/vfsStream lib/vfsStream | ||
shell/ecomdev-phpunit-install.php shell/ecomdev-phpunit-install.php | ||
shell/*.php shell/ | ||
|
||
# Run shell installer | ||
@shell cd $PROJECT/shell && php -f ecomdev-phpunit-install.php -- --module $MODULE --project $PROJECT | ||
@shell cd $PROJECT/shell && php -f ecomdev-phpunit.php -- --action install | ||
|
||
# Disables built in tests for extension | ||
@shell cd $PROJECT/shell && php -f ecomdev-phpunit.php -- --action change-status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.