Skip to content

Commit

Permalink
Setup coveralls for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed May 17, 2015
1 parent e9d72f4 commit 0f0b268
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .coveralls.yml
@@ -0,0 +1,4 @@
service_name: travis-ci
src_dir: .
coverage_clover: build/logs/clover.xml

6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -43,4 +43,8 @@ install:
- if [ "$deps" = "low" ]; then composer update --prefer-lowest; fi
- if [ "$deps" != "low" ]; then composer install; fi

script: phpunit --coverage-text
script: phpunit --coverage-text --coverage-clover build/logs/clover.xml

after_success: |
sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" -a "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]; then php vendor/bin/coveralls -v --config .coveralls.yml; fi;'
4 changes: 3 additions & 1 deletion composer.json
Expand Up @@ -28,9 +28,11 @@
},
"require-dev": {
"phpunit/phpunit" : "~4.4",
"doctrine/doctrine-fixtures-bundle" : "~2.2"
"doctrine/doctrine-fixtures-bundle" : "~2.2",
"satooshi/php-coveralls": "~0.6"
},
"autoload": {
"psr-4": { "JavierEguiluz\\Bundle\\EasyAdminBundle\\": "" }
}
}

0 comments on commit 0f0b268

Please sign in to comment.