Skip to content

Commit 873b1ee

Browse files
committed
Use codecov
1 parent d47162e commit 873b1ee

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

.travis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ matrix:
2525
env: PHPCS=1 DEFAULT=0
2626

2727
- php: 7.0
28-
env: COVERALLS=1 DEFAULT=0 DB=mysql db_dsn='mysql://[email protected]/cakephp_test'
28+
env: CODECOVERAGE=1 DEFAULT=0 DB=mysql db_dsn='mysql://[email protected]/cakephp_test'
2929

3030
before_script:
31-
- sh -c "if [ '$COVERALLS' != '1' ]; then phpenv config-rm xdebug.ini; fi"
31+
- sh -c "if [ '$CODECOVERAGE' != '1' ]; then phpenv config-rm xdebug.ini; fi"
3232

3333
- composer self-update
3434
- composer install --prefer-dist --no-interaction
@@ -38,16 +38,14 @@ before_script:
3838

3939
- sh -c "if [ '$PHPCS' = '1' ]; then composer require cakephp/cakephp-codesniffer:dev-master; fi"
4040

41-
- sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev satooshi/php-coveralls:dev-master; fi"
42-
- sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi"
43-
4441
script:
4542
- sh -c "if [ '$DEFAULT' = '1' ]; then phpunit; fi"
4643

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

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

5250
notifications:
5351
email: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Sequence plugin to maintain ordered list of records
22

33
[![Build Status](https://img.shields.io/travis/ADmad/cakephp-sequence/master.svg?style=flat-square)](https://travis-ci.org/ADmad/cakephp-sequence)
4-
[![Coverage](https://img.shields.io/coveralls/ADmad/cakephp-sequence/master.svg?style=flat-square)](https://coveralls.io/r/ADmad/cakephp-sequence)
4+
[![Coverage](https://img.shields.io/codecov/c/github/ADmad/cakephp-sequence.svg?style=flat-square)](https://codecov.io/github/ADmad/cakephp-sequence)
55
[![Total Downloads](https://img.shields.io/packagist/dt/admad/cakephp-sequence.svg?style=flat-square)](https://packagist.org/packages/admad/cakephp-sequence)
66
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE.txt)
77

composer.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
"type": "cakephp-plugin",
66
"license": "MIT",
77
"require": {
8-
"php": ">=5.4",
98
"cakephp/orm": "3.*"
109
},
1110
"require-dev": {
12-
"phpunit/phpunit": "*",
1311
"cakephp/cakephp": "~3.0"
1412
},
1513
"autoload": {

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
<filter>
3333
<whitelist>
3434
<directory suffix=".php">./src/</directory>
35-
<directory suffix=".ctp">./src/</directory>
3635
</whitelist>
3736
</filter>
3837
</phpunit>

0 commit comments

Comments
 (0)