Skip to content

Commit 1111b9d

Browse files
Add Coveralls
1 parent 0693bf9 commit 1111b9d

File tree

6 files changed

+37
-9
lines changed

6 files changed

+37
-9
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ trim_trailing_whitespace = true
1313

1414
[*.php]
1515
indent_size = 4
16+
insert_final_newline = true

.travis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ matrix:
1515
- php: '7.0'
1616
fast_finish: true
1717

18-
before_install:
19-
- phpenv config-rm xdebug.ini
20-
2118
before_script:
2219
- docker pull imacatlol/seq
2320
- docker run -d --rm -p 6060:6060 --name seq imacatlol/seq
@@ -26,9 +23,10 @@ install:
2623
- composer install
2724

2825
script:
29-
- vendor/bin/phpunit
26+
- vendor/bin/phpunit -c phpunit.xml.dist
3027
- vendor/bin/phpunit -c phpunit-integration.xml
28+
- vendor/bin/phpcs --standard=psr2 src
3129

32-
after_script:
33-
- vendor/bin/phpcs --standard=psr2 ./src
30+
after_success:
31+
- travis_retry php vendor/bin/coveralls
3432
...

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![Build Status](https://travis-ci.org/roundpartner/seq-php.svg?branch=master)](https://travis-ci.org/roundpartner/seq-php)
2-
2+
[![Coverage Status](https://coveralls.io/repos/github/roundpartner/seq-php/badge.svg?branch=master)](https://coveralls.io/github/roundpartner/seq-php?branch=master)
33
# SEQ PHP
44
PHP Integration for SEQ
55
## Clean code

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
},
1414
"require-dev": {
1515
"phpunit/phpunit": "^5.7",
16-
"squizlabs/php_codesniffer": "^3.0"
16+
"squizlabs/php_codesniffer": "^3.0",
17+
"php-coveralls/php-coveralls": "^1.0"
1718
},
1819
"autoload": {
1920
"psr-4": {

phpunit.xml.dist

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="tests/bootstrap.php"
3+
colors="true"
4+
convertErrorsToExceptions="true"
5+
convertNoticesToExceptions="true"
6+
convertWarningsToExceptions="true"
7+
stopOnError="false"
8+
stopOnFailure="false"
9+
stopOnIncomplete="false"
10+
stopOnSkipped="false">
11+
12+
<testsuites>
13+
<testsuite name="Unit Tests">
14+
<directory suffix="Test.php">tests/Unit/</directory>
15+
</testsuite>
16+
</testsuites>
17+
18+
<logging>
19+
<log type="coverage-clover" target="build/logs/clover.xml"/>
20+
</logging>
21+
22+
<filter>
23+
<whitelist processUncoveredFilesFromWhitelist="true">
24+
<directory suffix=".php">src</directory>
25+
</whitelist>
26+
</filter>
27+
28+
</phpunit>

src/HMAC.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ public function validate($data, $hash)
4646
$digest = $this->generate($data);
4747
return hash_equals($digest, $hash);
4848
}
49-
}
49+
}

0 commit comments

Comments
 (0)