Skip to content

Commit

Permalink
Use codecov instead of coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jan 27, 2016
1 parent 6633cbb commit 4e382c4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .travis.yml
Expand Up @@ -30,7 +30,7 @@ matrix:

include:
- php: 7.0
env: COVERALLS=1 DEFAULT=0
env: CODECOVERAGE=1 DEFAULT=0

- php: 7.0
env: PHPCS=1 DEFAULT=0
Expand All @@ -42,7 +42,7 @@ matrix:
env: HHVM=1 DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'

allow_failures:
- env: COVERALLS=1 DEFAULT=0
- env: CODECOVERAGE=1 DEFAULT=0

- php: hhvm

Expand All @@ -60,9 +60,6 @@ before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE SCHEMA test2;' -U postgres -d cakephp_test; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE SCHEMA test3;' -U postgres -d cakephp_test; fi"

- sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev satooshi/php-coveralls:dev-master; fi"
- sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi"

- sh -c "if [ '$HHVM' != '1' ]; then echo 'extension = memcached.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi"
- sh -c "if [ '$HHVM' != '1' ]; then echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi"
- sh -c "if [ '$HHVM' != '1' ]; then echo 'extension = apc.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi"
Expand All @@ -76,8 +73,9 @@ script:

- sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi"

- sh -c "if [ '$COVERALLS' = '1' ]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover build/logs/clover.xml || true; fi"
- sh -c "if [ '$COVERALLS' = '1' ]; then vendor/bin/coveralls -v; fi"
- sh -c "if [ '$CODECOVERAGE' = '1' ]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=clover.xml || true; fi"
- sh -c "if [ '$CODECOVERAGE' = '1' ]; then wget -O codecov.sh https://codecov.io/bash; fi"
- sh -c "if [ '$CODECOVERAGE' = '1' ]; then bash codecov.sh; fi"

notifications:
email: false

0 comments on commit 4e382c4

Please sign in to comment.