Skip to content

Commit

Permalink
updated config for travis and coveralls for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mebjas committed Mar 29, 2017
1 parent 80f75f1 commit 094eccf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
service_name: travis-ci
src_dir: ./libs/
coverage_clover: build/logs/clover.xml
json_path: build/logs/coveralls-upload.json
19 changes: 16 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ matrix:
os:
- linux

install:
# Install composer packages, will also trigger dump-autoload
- composer install --no-interaction
# Install coveralls.phar
- wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
- chmod +x coveralls.phar
- php coveralls.phar --version

before_script:
- wget http://getcomposer.org/composer.phar
- php composer.phar install --dev --no-interaction
- mkdir -p build/logs
- ls -al

script:
- mkdir -p build/logs
Expand All @@ -29,4 +37,9 @@ after_script:
- php vendor/bin/coveralls -v

after_success:
- bash <(curl -s https://codecov.io/bash)
- travis_retry php coveralls.phar -v

cache:
directories:
- vendor
- $HOME/.cache/composer

0 comments on commit 094eccf

Please sign in to comment.