Skip to content

Commit

Permalink
Fix travis-ci & coveralls configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoirotte committed Jul 17, 2016
1 parent 03637e3 commit 4abb72a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
service_name: travis-ci
src_dir: src
coverage_clover: clover.xml
json_path: coveralls.json
22 changes: 14 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
language: php

sudo: false

cache:
directories:
- vendor/

php:
- 5.3.3
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- nightly
- hhvm
- hhvm-nightly

notifications:
email: false
irc: "irc.iiens.net#Erebot"

before_script:
- if [ "$TRAVIS_PHP_VERSION" = "5.3.3" ]; then prefer_source="--prefer-source"; else prefer_source=""; fi
- rm composer.lock
- composer self-update -n
- composer install --dev -n $prefer_source
- composer install --dev -n

script:
- phpunit --coverage-clover clover.xml --test-suffix=.php --bootstrap tests/testenv/bootstrap.php tests/unit/
- vendor/bin/phpunit

after_script:
- composer require --dev $prefer_source "satooshi/php-coveralls dev-master"
- php vendor/bin/coveralls -n -v
after_success:
- composer require --dev satooshi/php-coveralls
- travis_retry vendor/bin/coveralls -n -v

0 comments on commit 4abb72a

Please sign in to comment.