Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
Travis CI with Coverage test
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Tomasz Zembrowski committed May 16, 2017
1 parent 5e60249 commit 1ca0f9e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
27 changes: 13 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
language: php
php:
- nightly
- hhvm
- 7.0
- 5.6

matrix:
allow_failures:
- php: nightly
fast_finish: true
include:
- php: 5.6
env: PHPUNIT_VERSION="5.7.*"
- php: 7.0
env: PHPUNIT_VERSION="5.7.*"
- php: hhvm
env: PHPUNIT_VERSION="5.7.*"
- php: nightly
env: PHPUNIT_VERSION="5.7.*"

before_install:
- composer self-update
- composer require "phpunit/phpunit:${PHPUNIT_VERSION}" --no-update
install:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev --no-interaction
script:
- mkdir -p build/logs
- php vendor/bin/phpunit

install: composer update --no-interaction --prefer-source
after_success:
- travis_retry php vendor/bin/coveralls -v
8 changes: 8 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>
6 changes: 0 additions & 6 deletions scripts/phpunit-with-coveralls.sh

This file was deleted.

0 comments on commit 1ca0f9e

Please sign in to comment.