Changeset 11001
- Timestamp:
- 08/08/2016 01:36:32 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 2 edited
-
.travis.yml (modified) (1 diff)
-
Gruntfile.js (modified) (3 diffs)
-
codecoverage.xml (deleted)
-
tests/phpunit/codecoverage.xml (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.travis.yml
r10998 r11001 66 66 - cd .. 67 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; fi68 # Disable xdebug if not running codecoverage. 69 - if [[ "$BP_TRAVISCI" != "travis:codecoverage" ]] ; then phpenv config-rm xdebug.ini; fi 70 70 # set up tests config 71 71 - cd $WP_DEVELOP_DIR -
trunk/Gruntfile.js
r11000 r11001 215 215 args: ['-c', 'tests/phpunit/multisite.xml'] 216 216 }, 217 // Requires PHP 7+218 217 'codecoverage': { 219 cmd: 'php dbg',220 args: ['- qrr', grunt.config.get( 'BP_PHPUNIT' ), '-c', 'codecoverage.xml', '--coverage-clover', 'clover.xml' ]218 cmd: 'phpunit', 219 args: ['-c', 'tests/phpunit/codecoverage.xml' ] 221 220 } 222 221 }, … … 231 230 cwd: BUILD_DIR, 232 231 stdout: false 233 },234 find_phpunit: {235 command: 'which phpunit',236 stdout: false,237 callback: function (error, stdout) {238 grunt.config.set( 'BP_PHPUNIT', stdout );239 }240 232 } 241 233 }, … … 294 286 grunt.registerTask( 'travis:grunt', 'Runs Grunt build task.', [ 'build' ]); 295 287 grunt.registerTask( 'travis:phpunit', ['jsvalidate:src', 'jshint', 'checktextdomain', 'test'] ); 296 grunt.registerTask( 'travis:codecoverage', 'Runs PHPUnit tasks with code-coverage generation. Requires PHP7+.', [ 'exec:find_phpunit', 'phpunit:codecoverage' ]);288 grunt.registerTask( 'travis:codecoverage', 'Runs PHPUnit tasks with code-coverage generation.', ['phpunit:codecoverage'] ); 297 289 298 290 // Patch task.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)