Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
[travis] Add Coveralls.io integration
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarlium committed Jul 18, 2014
1 parent 8070e50 commit acc40b6
Show file tree
Hide file tree
Showing 4 changed files with 330 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ before_script:
- phpenv config-add php.ini
- mkdir -p app/log
- mkdir -p app/cache
- mkdir -p build/logs
- rm -rf app/cache/twig/*
- rm -rf app/cache/assetic/*

script:
- ./node_modules/grunt-cli/bin/grunt travis

after_script:
- php vendor/bin/coveralls -v
6 changes: 5 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ module.exports = function (grunt) {
'--log-junit build/logs/junit.xml'
},

'phpunit-travis': {
cmd: 'vendor/bin/phpunit --coverage-clover build/logs/clover.xml'
},

// http://www.squizlabs.com/php-codesniffer
'phpcs': {
cmd: function () {
Expand Down Expand Up @@ -141,6 +145,6 @@ module.exports = function (grunt) {
grunt.registerTask('default', ['qa']);
grunt.registerTask('qa', ['phpunit', 'phpcs', 'phpmd']);
grunt.registerTask('jenkins', ['exec:ci-prepare', 'phpunit-ci', 'phpcs', 'exec:phpmd-ci']);
grunt.registerTask('travis', ['exec:composer-install', 'phpunit', 'exec:phpcs-travis', 'phpmd']);
grunt.registerTask('travis', ['exec:composer-install', 'exec:phpunit-travis', 'exec:phpcs-travis', 'phpmd']);
}
;
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"phpunit/phpunit": "~3.7",
"pdepend/pdepend": "~1.1",
"phpmd/phpmd": "~1.4",
"squizlabs/php_codesniffer": "~1.4, <1.5"
"squizlabs/php_codesniffer": "~1.4, <1.5",
"satooshi/php-coveralls": "~0.6"
},
"minimum-stability": "stable"
}
321 changes: 319 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit acc40b6

Please sign in to comment.