Skip to content

Commit

Permalink
[development] travis no deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantus committed Dec 12, 2016
1 parent 8c4c0a5 commit 492a6a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ script:
- cd $TRAVIS_BUILD_DIR/build/magento
- cp $TRAVIS_BUILD_DIR/phpunit-prod.xml.dist .
- cp $TRAVIS_BUILD_DIR/phpunit-dev.xml.dist .
- phpunit -c phpunit-prod.xml.dist && phpunit -c phpunit-dev.xml.dist --coverage-clover $TRAVIS_BUILD_DIR/build/logs/clover.xml
- php $TRAVIS_BUILD_DIR/util/phpunit.phar -c phpunit-prod.xml.dist && php $TRAVIS_BUILD_DIR/util/phpunit.phar -c phpunit-dev.xml.dist --coverage-clover $TRAVIS_BUILD_DIR/build/logs/clover.xml

after_success:
- cd $TRAVIS_BUILD_DIR
Expand Down
9 changes: 9 additions & 0 deletions travis-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,17 @@ mkdir -p magento/var/log
mkdir $TRAVIS_BUILD_DIR/util
cd $TRAVIS_BUILD_DIR/util
#only install test dependencies
#DO NOT USE COMPOSER FOR PHPUNIT as it shares its autoloader
composer require satooshi/php-coveralls

if [ $TRAVIS_PHP_VERSION == "5.5" ]
then
wget https://phar.phpunit.de/phpunit-4.8.31.phar
mv phpunit-4.8.31.phar phpunit.phar
else
wget https://phar.phpunit.de/phpunit.phar
fi
chmod +x phpunit.phar

# Install our module
cd $TRAVIS_BUILD_DIR/build/magento
Expand Down

0 comments on commit 492a6a6

Please sign in to comment.