Skip to content

Commit

Permalink
[travis] improve coveralls and cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Feb 5, 2017
1 parent 765f160 commit b29437c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ language: php
cache:
directories:
- $HOME/.composer/cache
- vendor

matrix:
fast_finish: true
Expand All @@ -22,8 +23,6 @@ matrix:

before_install:
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0; fi
- composer self-update
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls; fi

install:
- travis_retry composer update --no-interaction $COMPOSER_ARGUMENTS
Expand All @@ -35,4 +34,8 @@ script:
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run; fi

after_script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then travis_retry ./vendor/bin/coveralls -v; fi
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar;
chmod +x coveralls.phar;
php coveralls.phar -v;
fi

0 comments on commit b29437c

Please sign in to comment.