Skip to content

Commit 6328335

Browse files
author
Jordan Hall
committed
Add tavis and coveralls
1 parent 0837e60 commit 6328335

File tree

4 files changed

+45
-1
lines changed

4 files changed

+45
-1
lines changed

.coveralls.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage_clover: tests/Logs/clover.xml
2+
json_path: tests/Logs/coveralls-upload.json
3+
service_name: travis-ci

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: php
2+
dist: trusty
3+
php:
4+
- '7.1'
5+
- '7.2'
6+
- '7.3'
7+
install:
8+
- composer update
9+
script:
10+
- ./vendor/bin/phpunit --coverage-clover ./tests/Logs/clover.xml
11+
after_script:
12+
- php vendor/bin/php-coveralls -v

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
}
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^8.0"
28+
"phpunit/phpunit": "^8.0",
29+
"php-coveralls/php-coveralls": "^2.0"
2930
}
3031
}

phpunit.xml

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 backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false">
11+
<testsuites>
12+
<testsuite name="Unit Tests">
13+
<directory suffix="Test.php">./tests/Unit</directory>
14+
<directory suffix="Test.php">./tests/Integration</directory>
15+
</testsuite>
16+
</testsuites>
17+
<filter>
18+
<whitelist>
19+
<directory suffix=".php">src</directory>
20+
<exclude>
21+
<directory suffix=".php">src/Examples</directory>
22+
</exclude>
23+
</whitelist>
24+
</filter>
25+
<php>
26+
27+
</php>
28+
</phpunit>

0 commit comments

Comments
 (0)