Changeset 10997
- Timestamp:
- 08/07/2016 01:47:28 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.travis.yml
r10986 r10997 36 36 - php: 7.0 37 37 env: WP_VERSION=master BP_TRAVISCI=travis:grunt 38 - php: 7.0 39 env: WP_VERSION=master BP_TRAVISCI=travis:codecoverage 38 40 - php: hhvm 39 41 sudo: required … … 52 54 - php: nightly 53 55 - php: hhvm 56 - env: BP_TRAVISCI=travis:codecoverage WP_VERSION=master 54 57 55 58 # before_install: Failures in this section will result in build status 'errored' … … 63 66 - cd .. 64 67 - mv $plugin_slug $plugin_dir 68 # Disable xdebug if running codecoverage (use phpdbg instead). 69 - if [[ "$BP_TRAVISCI" == "travis:codecoverage" ]] ; then phpenv config-rm xdebug.ini; fi 65 70 # set up tests config 66 71 - cd $WP_DEVELOP_DIR … … 91 96 script: grunt $BP_TRAVISCI 92 97 98 +after_script: 99 - | 100 if [[ "$BP_TRAVISCI" == "travis:codecoverage" ]] ; then 101 bash <(curl -s https://codecov.io/bash) 102 fi 103 93 104 notifications: 94 105 email: false -
trunk/Gruntfile.js
r10936 r10997 214 214 cmd: 'phpunit', 215 215 args: ['-c', 'tests/phpunit/multisite.xml'] 216 }, 217 // Requires PHP 7+ 218 'codecoverage': { 219 cmd: 'phpdbg', 220 args: ['-qrr', 'phpunit', '-c', 'codecoverage.xml', '--coverage-clover', 'clover.xml' ] 216 221 } 217 222 }, … … 275 280 }); 276 281 277 grunt.registerTask( 'test', 'Run all unit test tasks.', ['phpunit '] );282 grunt.registerTask( 'test', 'Run all unit test tasks.', ['phpunit:default', 'phpunit:multisite'] ); 278 283 279 284 grunt.registerTask( 'jstest', 'Runs all JavaScript tasks.', [ 'jsvalidate:src', 'jshint' ] ); … … 282 287 grunt.registerTask( 'travis:grunt', 'Runs Grunt build task.', [ 'build' ]); 283 288 grunt.registerTask( 'travis:phpunit', ['jsvalidate:src', 'jshint', 'checktextdomain', 'test'] ); 289 grunt.registerTask( 'travis:codecoverage', 'Runs PHPUnit tasks with code-coverage generation. Requires PHP7+.', [ 'phpunit:codecoverage' ]); 284 290 285 291 // Patch task.
Note: See TracChangeset
for help on using the changeset viewer.