Skip to:
Content

BuddyPress.org

Changeset 10999


Ignore:
Timestamp:
08/07/2016 05:32:23 PM (4 years ago)
Author:
djpaul
Message:

Travis-CI: travis:codecoverage requires an absolute path to PHPUnit on Travis-CI.

See #7207 and r10997

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r10997 r10999  
    218218            'codecoverage': {
    219219                cmd: 'phpdbg',
    220                 args: ['-qrr', 'phpunit', '-c', 'codecoverage.xml', '--coverage-clover', 'clover.xml' ]
     220                args: ['-qrr', grunt.config.get( 'BP_PHPUNIT' ), '-c', 'codecoverage.xml', '--coverage-clover', 'clover.xml' ]
    221221            }
    222222        },
     
    231231                cwd: BUILD_DIR,
    232232                stdout: false
     233            },
     234            find_phpunit: {
     235                command: 'which phpunit',
     236                stdout: false,
     237                callback: function (error, stdout, stderr) {
     238                    grunt.config.set( 'BP_PHPUNIT', stdout );
     239                }
    233240            }
    234241        },
     
    287294    grunt.registerTask( 'travis:grunt', 'Runs Grunt build task.', [ 'build' ]);
    288295    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' ]);
     296    grunt.registerTask( 'travis:codecoverage', 'Runs PHPUnit tasks with code-coverage generation. Requires PHP7+.', [ 'exec:find_phpunit', 'phpunit:codecoverage' ]);
    290297
    291298    // Patch task.
Note: See TracChangeset for help on using the changeset viewer.