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 6b04f02
Show file tree
Hide file tree
Showing 5 changed files with 333 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: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Silex Bootstrap
===============
[![Build Status](https://travis-ci.org/aptoma/silex-bootstrap.svg)](https://travis-ci.org/aptoma/silex-bootstrap)
[![Coverage Status](https://img.shields.io/coveralls/aptoma/silex-bootstrap.svg)](https://coveralls.io/r/aptoma/silex-bootstrap)


This repository provides a starting point for building Silex applications. It
includes:
Expand Down
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"
}
Loading

0 comments on commit 6b04f02

Please sign in to comment.