Skip to content

Commit

Permalink
Add Codecov.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebin committed Sep 13, 2019
1 parent fee6209 commit 4b33fec
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
**/.idea/dataSources.local.xml
**/.idea/dictionaries
/vendor/
.php_cs.cache
/tests-report-html/
/.php_cs.cache
/tests-report-html/
/coverage.xml
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
language: php

cache:
directories:
- $HOME/.composer

sudo: false

matrix:
fast_finish: true
include:
- php: '7.1'
- php: '7.2'
- php: '7.3'

install:
- travis_retry composer install --no-progress --no-interaction --prefer-dist

script:
- ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run -v --stop-on-violation
- ./vendor/bin/phpstan analyse -l 7 -c phpstan.neon src
- composer phpunit
- ./vendor/bin/phpstan analyse -l 7 -c phpstan.neon src tests
- ./vendor/bin/phpunit --coverage-clover=coverage.xml

after_success:
- bash <(curl -s https://codecov.io/bash)
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[![Build Status](https://travis-ci.org/ddebin/atom-generator.svg?branch=master)](https://travis-ci.org/ddebin/atom-generator)
![Travis (.org)](https://img.shields.io/travis/ddebin/atom-generator?logo=travis&style=for-the-badge)
![Codecov](https://img.shields.io/codecov/c/github/ddebin/atom-generator?logo=codecov&style=for-the-badge)
![PHP from Packagist](https://img.shields.io/packagist/php-v/ddebin/atom-generator?logo=php&style=for-the-badge)
![Packagist Version](https://img.shields.io/packagist/v/ddebin/atom-generator?style=for-the-badge)
![Packagist](https://img.shields.io/packagist/l/ddebin/atom-generator?style=for-the-badge)

# Atom feed generator

Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
],
"require": {
"php": "^7.1",
"ext-dom": "*",
"ext-simplexml": "*",
"webmozart/assert": "^1.5"
},
"require-dev": {
Expand Down
6 changes: 4 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4b33fec

Please sign in to comment.