Skip to content

Commit cbd5e5e

Browse files
authored
Merge pull request #3 from vukanac/feature/integrate-coveralls-io
Add coveralls.io support
2 parents 020315c + 48bd45d commit cbd5e5e

File tree

4 files changed

+596
-3
lines changed

4 files changed

+596
-3
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ before_script:
1717

1818
# Run here all same as in `composer ci`
1919
script:
20+
- mkdir -p build/logs
2021
- composer validate --no-check-all --strict
2122
- vendor/bin/phpcs --standard=PSR2 src
2223
- vendor/bin/phpcpd src tests
@@ -29,3 +30,4 @@ script:
2930
# public repo on Travis CI (without token)
3031
after_success:
3132
- bash <(curl -s https://codecov.io/bash)
33+
- travis_retry php vendor/bin/php-coveralls -x coverage.xml

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Project: CI Base PHP with TravisCI
22

33
[![Build Status](https://travis-ci.org/vukanac/ci-base-php.svg?branch=master)](https://travis-ci.org/vukanac/ci-base-php)
4-
[![codecov](https://codecov.io/gh/vukanac/ci-base-php/branch/master/graph/badge.svg)](https://codecov.io/gh/vukanac/ci-base-php)
4+
[![Coverage Status - codecov](https://codecov.io/gh/vukanac/ci-base-php/branch/master/graph/badge.svg)](https://codecov.io/gh/vukanac/ci-base-php)
5+
[![Coverage Status - coveralls](https://coveralls.io/repos/github/vukanac/ci-base-php/badge.svg?branch=master)](https://coveralls.io/github/vukanac/ci-base-php?branch=master)
56

67

78
## Description
@@ -63,6 +64,13 @@ Added strict rules with:
6364
./vendor/bin/psalm
6465

6566

67+
#### Ceveralls (with php)
68+
69+
composer require --dev php-coveralls/php-coveralls
70+
pecl install xdebug
71+
./vendor/bin/phpunit
72+
73+
6674
### The best use
6775

6876
Install plugins to Sublime Text 3:
@@ -113,5 +121,4 @@ MIT
113121

114122
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fvukanac%2Fci-base-php.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fvukanac%2Fci-base-php?ref=badge_large)
115123

116-
117124
Vladimir Vukanac

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"require": {
1313
},
1414
"require-dev": {
15+
"php-coveralls/php-coveralls": "^2.1",
1516
"phpstan/extension-installer": "^1.0",
1617
"phpstan/phpstan": "^0.11.16",
1718
"phpstan/phpstan-phpunit": "^0.11.2",

0 commit comments

Comments
 (0)