Skip to:
Content

BuddyPress.org

Changeset 11001


Ignore:
Timestamp:
08/08/2016 01:36:32 PM (10 years ago)
Author:
djpaul
Message:

Travis-CI: disable xdebug globally and switch travis:codecoverage to use xdebug instead of phpdbg.

In r10997, we set up a code coverage task which used phpdbg to speed up code coverage report generation.
Iteration and further testing has shown the Travis-CI environment will not support our particular project
layout with phpdbg. This commit simplifies the code coverage to use xdebug.

xdebug has also been globally disabled on Travis-CI (the code coverage task explicitly re-enables it)
because we are not relying on it for any parts of our existing tests, and doing so should speed up
running the unit tests.

See #7207

Location:
trunk
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r10998 r11001  
    6666  - cd ..
    6767  - 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
     68  # Disable xdebug if not running codecoverage.
     69  - if [[ "$BP_TRAVISCI" != "travis:codecoverage" ]] ; then phpenv config-rm xdebug.ini; fi
    7070  # set up tests config
    7171  - cd $WP_DEVELOP_DIR
  • trunk/Gruntfile.js

    r11000 r11001  
    215215                                args: ['-c', 'tests/phpunit/multisite.xml']
    216216                        },
    217                         // Requires PHP 7+
    218217                        'codecoverage': {
    219                                 cmd: 'phpdbg',
    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' ]
    221220                        }
    222221                },
     
    231230                                cwd: BUILD_DIR,
    232231                                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                                 }
    240232                        }
    241233                },
     
    294286        grunt.registerTask( 'travis:grunt', 'Runs Grunt build task.', [ 'build' ]);
    295287        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'] );
    297289
    298290        // Patch task.
Note: See TracChangeset for help on using the changeset viewer.