Make WordPress Core

Ticket #50393: 50393.diff

File 50393.diff, 791 bytes (added by desrosj, 3 years ago)
  • Gruntfile.js

     
    12831283        ] );
    12841284
    12851285        grunt.registerTask( 'precommit:php', [
     1286                'phpcompat',
    12861287                'phpunit'
    12871288        ] );
    12881289
     
    16691670                } );
    16701671        } );
    16711672
     1673        grunt.registerTask( 'phpcompat', 'Runs PHPCompatibilitiy tests.', function() {
     1674                var args = changedFiles.php;
     1675
     1676                args.unshift( 'compat' );
     1677
     1678                grunt.util.spawn({
     1679                        cmd: 'composer',
     1680                        args: args,
     1681                        opts: { stdio: 'inherit' }
     1682                }, this.async());
     1683        });
     1684
    16721685        grunt.registerTask( 'wp-packages:update', 'Update WordPress packages', function() {
    16731686                const distTag = grunt.option('dist-tag') || 'latest';
    16741687                grunt.log.writeln( `Updating WordPress packages (--dist-tag=${distTag})` );