Skip to content

Commit

Permalink
add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
xinningsu committed Jul 21, 2019
1 parent 0c02c45 commit 4072430
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.idea
/.DS_Store
/composer.lock
/build
/vendor
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ install:

script:
- vendor/bin/phpcs -n --standard=PSR12 --ignore=./vendor/ --extensions=php ./
- mkdir -p build/logs
- vendor/bin/phpunit

after_success:
- travis_retry php vendor/bin/php-coveralls -v
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# html-query

[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
[![Build Status](https://api.travis-ci.org/xinningsu/html-query.svg?branch=master)](https://travis-ci.org/xinningsu/html-query)

A jQuery-like html processor written in PHP

# Quick Start
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"require-dev": {
"phpunit/phpunit": "~7.5",
"squizlabs/php_codesniffer": "3.*"
"squizlabs/php_codesniffer": "3.*",
"php-coveralls/php-coveralls": "^2.1"
},
"autoload": {
"psr-4": {
Expand All @@ -29,4 +30,4 @@
"tests/"
]
}
}
}
8 changes: 8 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit 4072430

Please sign in to comment.