Skip to content
This repository was archived by the owner on Mar 13, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service_name: travis-ci
coverage_clover: tests/logs/clover.xml
json_path: tests/logs/coveralls-upload.json
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ dist: precise
php:
- 7.0
- 7.1
- nightly

sudo: false

Expand All @@ -17,4 +16,8 @@ before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-dist

script: phpunit --configuration phpunit.xml.dist
script:
- phpunit --configuration phpunit.xml.dist --coverage-clover ./tests/logs/clover.xml

after_success:
- php vendor/bin/coveralls -v
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Structure Type Validation
[![Build Status](https://travis-ci.org/LinMAD/StructureTypeValidation.svg?branch=master)](https://travis-ci.org/LinMAD/StructureTypeValidation)

[![Coverage Status](https://coveralls.io/repos/github/LinMAD/StructureTypeValidation/badge.svg?branch=master)](https://coveralls.io/github/LinMAD/StructureTypeValidation?branch=master)

Light and simple structure validator. Do validation of yours structures as expected.

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 @@
"php": ">=7"
},
"require-dev": {
"phpunit/phpunit": "6.3.*"
"phpunit/phpunit": "6.3.*",
"php-coveralls/php-coveralls": "^1.0"
},
"autoload": {
"psr-4": {
Expand All @@ -29,4 +30,4 @@
"StructureValidator\\Test\\": "test/StructureValidator/"
}
}
}
}
9 changes: 9 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@
<directory>./test/StructureValidator/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src</directory>
<exclude>
<directory>./vendor</directory>
<directory>./tests</directory>
</exclude>
</whitelist>
</filter>
</phpunit>