summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Farina <[email protected]>2013-11-05 11:25:15 -0500
committerMatt Farina <[email protected]>2013-11-05 11:25:15 -0500
commitb35bb36ba5abffaef4644e2dbfe503a60ad2ff98 (patch)
treec4bf922367fead80dbfb17aaea1b4025cd9c655c
parentf0bd0b439c5765718d5ceed04464993a52936ce3 (diff)
Added code coverage to Travis CI so it can be passed to coveralls.
-rw-r--r--.travis.yml4
-rw-r--r--phpunit.xml.dist21
2 files changed, 25 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 289f9fe..aaf85dc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,6 +12,10 @@ before_script:
- composer self-update
- composer install --dev
+script:
+ - mkdir -p build/logs
+ - phpunit -c phpunit.xml.dist
+
after_script:
- php vendor/bin/coveralls -v
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
new file mode 100644
index 0000000..81df747
--- /dev/null
+++ b/phpunit.xml.dist
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit colors="true">
+ <testsuites>
+ <testsuite name="PHPUnit">
+ <directory>test/HTML5/</directory>
+ </testsuite>
+ </testsuites>
+ <logging>
+ <log
+ type="coverage-html"
+ target="build/coverage"
+ charset="UTF-8"
+ yui="true"
+ highlight="true"
+ lowUpperBound="35"
+ highLowerBound="70"
+ showUncoveredFiles="true"
+ />
+ <log type="coverage-clover" target="build/logs/clover.xml"/>
+ </logging>
+</phpunit>