Skip to content

Commit 4b33fec

Browse files
author
Damien Debin
committed
Add Codecov.
1 parent fee6209 commit 4b33fec

5 files changed

Lines changed: 24 additions & 7 deletions

File tree

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
**/.idea/dataSources.local.xml
55
**/.idea/dictionaries
66
/vendor/
7-
.php_cs.cache
8-
/tests-report-html/
7+
/.php_cs.cache
8+
/tests-report-html/
9+
/coverage.xml

.travis.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
language: php
2+
23
cache:
34
directories:
45
- $HOME/.composer
6+
57
sudo: false
8+
69
matrix:
710
fast_finish: true
811
include:
912
- php: '7.1'
1013
- php: '7.2'
1114
- php: '7.3'
15+
1216
install:
1317
- travis_retry composer install --no-progress --no-interaction --prefer-dist
18+
1419
script:
1520
- ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run -v --stop-on-violation
16-
- ./vendor/bin/phpstan analyse -l 7 -c phpstan.neon src
17-
- composer phpunit
21+
- ./vendor/bin/phpstan analyse -l 7 -c phpstan.neon src tests
22+
- ./vendor/bin/phpunit --coverage-clover=coverage.xml
23+
24+
after_success:
25+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
[![Build Status](https://travis-ci.org/ddebin/atom-generator.svg?branch=master)](https://travis-ci.org/ddebin/atom-generator)
1+
![Travis (.org)](https://img.shields.io/travis/ddebin/atom-generator?logo=travis&style=for-the-badge)
2+
![Codecov](https://img.shields.io/codecov/c/github/ddebin/atom-generator?logo=codecov&style=for-the-badge)
3+
![PHP from Packagist](https://img.shields.io/packagist/php-v/ddebin/atom-generator?logo=php&style=for-the-badge)
4+
![Packagist Version](https://img.shields.io/packagist/v/ddebin/atom-generator?style=for-the-badge)
5+
![Packagist](https://img.shields.io/packagist/l/ddebin/atom-generator?style=for-the-badge)
26

37
# Atom feed generator
48

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
],
1818
"require": {
1919
"php": "^7.1",
20+
"ext-dom": "*",
21+
"ext-simplexml": "*",
2022
"webmozart/assert": "^1.5"
2123
},
2224
"require-dev": {

composer.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)