Skip to:
Content

BuddyPress.org

Changeset 12751


Ignore:
Timestamp:
10/11/2020 03:52:53 PM (6 years ago)
Author:
imath
Message:

Build/Test tools: do not build blocks during travis:grunt task

Remove the exec:blocks_src task from the src one and create a new task to build blocks. This should prevent Travis to fail building blocks when the build has been cached.

To generate the development blocks version, you now need to run grunt commit:blocks. This task is equivalent to running grunt commit && grunt exec:blocks_src.

See #8369

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r12749 r12751  
    402402         * Register tasks.
    403403         */
    404         grunt.registerTask( 'src',     ['checkDependencies', 'jsvalidate:src', 'jshint', 'stylelint', 'sass', 'postcss', 'rtlcss', 'exec:blocks_src'] );
     404        grunt.registerTask( 'src', ['checkDependencies', 'jsvalidate:src', 'jshint', 'stylelint', 'sass', 'postcss', 'rtlcss'] );
    405405        grunt.registerTask( 'makepot', ['exec:makepot'] );
    406         grunt.registerTask( 'commit',  ['src', 'checktextdomain', 'imagemin', 'phplint', 'exec:phpcompat'] );
     406        grunt.registerTask( 'commit', ['src', 'checktextdomain', 'imagemin', 'phplint', 'exec:phpcompat'] );
     407        grunt.registerTask( 'commit:blocks', ['commit', 'exec:blocks_src'] );
    407408        grunt.registerTask( 'bp_rest', [ 'exec:rest_api', 'copy:bp_rest_components', 'copy:bp_rest_core', 'clean:bp_rest' ] );
    408         grunt.registerTask( 'build',   ['commit', 'clean:all', 'copy:files', 'uglify:core', 'jsvalidate:build', 'exec:blocks_build', 'cssmin', 'bp_rest', 'makepot', 'exec:bpdefault', 'exec:cli', 'clean:cli'] );
     409        grunt.registerTask( 'build', ['commit', 'clean:all', 'copy:files', 'uglify:core', 'jsvalidate:build', 'exec:blocks_build', 'cssmin', 'bp_rest', 'makepot', 'exec:bpdefault', 'exec:cli', 'clean:cli'] );
    409410        grunt.registerTask( 'release', ['build'] );
    410411
Note: See TracChangeset for help on using the changeset viewer.