1
0
mirror of synced 2024-11-25 06:26:07 +03:00

Added script.sh, updated travis config

This commit is contained in:
Akolzin Dmitry 2018-05-15 16:44:45 +03:00
parent 7e7556fef3
commit 4c23faf1f4
2 changed files with 10 additions and 2 deletions

View File

@ -28,8 +28,7 @@ before_script:
- bash bin/install.sh - bash bin/install.sh
script: script:
- cd ../magento2 - bash bin/script.sh
- php vendor/phpunit/phpunit/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/Retailcrm/Retailcrm/Test/Unit/
deploy: deploy:
skip_cleanup: true skip_cleanup: true

9
bin/script.sh Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [ -z $TRAVIS_BUILD_DIR ]; then
exit 0;
fi
MAGE_ROOT=$TRAVIS_BUILD_DIR/../magento2
cd $MAGE_ROOT
php vendor/phpunit/phpunit/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/Retailcrm/Retailcrm/Test/Unit