Permalink
Browse files

Setup coveralls for code coverage

  • Loading branch information...
1 parent e9d72f4 commit 0f0b26839162c0faff699495fd60fc7b12817345 @Pierstoval Pierstoval committed May 17, 2015
Showing with 12 additions and 2 deletions.
  1. +4 −0 .coveralls.yml
  2. +5 −1 .travis.yml
  3. +3 −1 composer.json
View
@@ -0,0 +1,4 @@
+service_name: travis-ci
+src_dir: .
+coverage_clover: build/logs/clover.xml
+
View
@@ -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;'
+
View
@@ -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.