Skip to content

Commit 9103b38

Browse files
author
Tom
committed
Merge pull request #10 from tomverran/add-codeclimate
Update README, attempt to add codeclimate reporting to build
2 parents 8b5f9ae + b826b69 commit 9103b38

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
language: php
22
php:
3+
- 7.0
4+
- 5.6
35
- 5.5
46
- 5.4
7+
58
before_script: composer install
6-
script: phpunit -c phpunit.xml
9+
script: phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml
10+
11+
after_script:
12+
- vendor/bin/test-reporter
13+
14+
addons:
15+
code_climate:
16+
repo_token:
17+
secure: "AbkpzWeK7GVXdMTeCQ26TDH7kiTrP/spihgksSVEPvTAwI6oPlcs/lL7lt7zuPJ+geuNkuLHYJ2IreBU+qP35iPTnuVTftJA3BXMeDzcU+7iIxs2FCbnGLBmt9J/RKI9blIxJBYYrDHvfbVy3lK2PRv8dvs28voNleHEj8m4D5g="
18+
19+

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Robots.txt checker
22
==================
33

4-
![Travis](https://travis-ci.org/tomverran/robots.svg?branch=master)
4+
[![Build Status](https://travis-ci.org/tomverran/robots.svg?branch=master)](https://travis-ci.org/tomverran/robots)
5+
[![Packagist](https://img.shields.io/packagist/v/tomverran/robots-txt-checker.svg)](https://packagist.org/packages/tomverran/robots-txt-checker)
56

67
Given a robots.txt file this library will give you a straight forward yes/no as to whether you're allowed to access
7-
a given resource with a given user agent. Internally it organises the file into a tree.
8+
a given resource with a given user agent.
89

910
Wildcards are supported.
1011

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"php": ">=5.4.0"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "3.7.*"
19+
"phpunit/phpunit": "3.7.*",
20+
"codeclimate/php-test-reporter": "dev-master"
2021
},
2122
"autoload": {
2223
"psr-4": {

phpunit.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@
44
<directory>tests</directory>
55
</testsuite>
66
</testsuites>
7+
<filter>
8+
<whitelist processUncoveredFilesFromWhitelist="true">
9+
<directory suffix=".php">src</directory>
10+
</whitelist>
11+
</filter>
712
</phpunit>

0 commit comments

Comments
 (0)