Skip to content

Commit

Permalink
Merge pull request #410 from cakephp/add-codecov
Browse files Browse the repository at this point in the history
Add codecov
  • Loading branch information
ADmad committed Mar 16, 2016
2 parents f2e7b2c + 6c3ca65 commit 682514f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
18 changes: 14 additions & 4 deletions .travis.yml
Expand Up @@ -9,15 +9,20 @@ php:
sudo: false

env:
- DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'
- DB=pgsql db_dsn='postgres://travis@127.0.0.1/cakephp_test'
- DB=sqlite
matrix:
- DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'
- DB=pgsql db_dsn='postgres://travis@127.0.0.1/cakephp_test'
- DB=sqlite
global:
- DEFAULT=1

matrix:
fast_finish: true
include:
- php: 7.0
env: PHPCS=1
- php: 7.0
env: CODECOVERAGE=1 DEFAULT=0

install:
- composer self-update
Expand All @@ -30,8 +35,13 @@ before_script:
- set +H

script:
- sh -c "if [ '$PHPCS' != '1' ]; then phpunit; fi"
- sh -c "if [ '$DEFAULT' = '1' ]; then phpunit; fi"

- sh -c "if [ '$PHPCS' = '1' ]; then ./vendor/bin/phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; 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
4 changes: 3 additions & 1 deletion README.md
@@ -1,4 +1,6 @@
# CakePHP DebugKit [![Build Status](https://secure.travis-ci.org/cakephp/debug_kit.png?branch=master)](http://travis-ci.org/cakephp/debug_kit)
# CakePHP DebugKit
[![Build Status](https://secure.travis-ci.org/cakephp/debug_kit.png?branch=master)](http://travis-ci.org/cakephp/debug_kit)
[![Coverage Status](https://img.shields.io/codecov/c/github/cakephp/debug_kit.svg?style=flat-square)](https://codecov.io/github/cakephp/debug_kit)

DebugKit provides a debugging toolbar and enhanced debugging tools for CakePHP applications.

Expand Down

0 comments on commit 682514f

Please sign in to comment.