Skip to content

Commit

Permalink
Add message when Coveralls dependency is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre committed Feb 27, 2016
1 parent d0d52be commit dc5464a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -29,7 +29,7 @@ addons:
# Only send code coverage to Code Climate for the current versions of PHP and Symfony LTS
# https://github.com/doctrine/doctrine2/blob/3570f4a49afc7e98fed71e0596dded6a39d4fd7b/.travis.yml#L16
before_install:
- if [[ $TRAVIS_PHP_VERSION = '7.0' && $SYMFONY_VERSION = '2.8.*' ]]; then DEPENDENCY="codeclimate/php-test-reporter:~0.3 satooshi/php-coveralls:~1.0"; PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; else DEPENDENCY=""; PHPUNIT_FLAGS=""; fi
- if [[ $TRAVIS_PHP_VERSION = '7.0' && $SYMFONY_VERSION = '2.8.*' ]]; then echo "Send results to Coveralls" ; DEPENDENCY="codeclimate/php-test-reporter:~0.3 satooshi/php-coveralls:~1.0"; PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; else DEPENDENCY=""; PHPUNIT_FLAGS=""; fi
- if [[ $TRAVIS_PHP_VERSION != '7.0' && $TRAVIS_PHP_VERSION != 'hhvm' && $PHPUNIT_FLAGS = "" ]]; then phpenv config-rm xdebug.ini; fi
# Create an hash corresponding to the PHP version and the dependencies
- echo "Values used for hash:"
Expand All @@ -50,7 +50,7 @@ script: php ./vendor/bin/phpunit $PHPUNIT_FLAGS

# Create cache archive from vendor/ directory
before_cache:
- if [[ -f $HOME/vendor-cache/$cachefile ]]; then echo "Delete previous cache archive"; tar -xf $HOME/vendor-cache/$cachefile ; echo "Done" ; else echo "No Cache file to delete" ; fi
- if [[ -f $HOME/vendor-cache/$cachefile ]]; then echo "Delete previous cache archive"; tar -xf $HOME/vendor-cache/$cachefile ; echo "Done" ; else echo "No cache file to delete" ; fi
- echo "Create cache archive" ; tar -cf $HOME/vendor-cache/$cachefile vendor/ ; echo "Done"
- echo "Size of cache file:" ; ls -lh $HOME/vendor-cache/$cachefile

Expand Down

0 comments on commit dc5464a

Please sign in to comment.