Skip to content
  • Ewoud Kohl van Wijngaarden's avatar
    46d41a23
    Run validation steps prior to the matrix build · 46d41a23
    Ewoud Kohl van Wijngaarden authored
    puppetlabs_spec_helper provides a task called validate which runs all
    static checks (syntax, lint, etc). If these fail, there isn't really any
    reason why you would want to start a full matrix build. Similarly, it
    also runs Rubocop prior to the matrix. Otherwise you just get a full
    failed matrix. The end result is less wasted CI on invalid syntax or
    style.
    
    This is taken from Voxpupuli's modulesync_config.
    
    It also unifies on "validate lint check rubocop". This does depend on
    puppetlabs_spec_helper version 2.16.0 or newer (which introduced the
    common `check` task).
    46d41a23
    Run validation steps prior to the matrix build
    Ewoud Kohl van Wijngaarden authored
    puppetlabs_spec_helper provides a task called validate which runs all
    static checks (syntax, lint, etc). If these fail, there isn't really any
    reason why you would want to start a full matrix build. Similarly, it
    also runs Rubocop prior to the matrix. Otherwise you just get a full
    failed matrix. The end result is less wasted CI on invalid syntax or
    style.
    
    This is taken from Voxpupuli's modulesync_config.
    
    It also unifies on "validate lint check rubocop". This does depend on
    puppetlabs_spec_helper version 2.16.0 or newer (which introduced the
    common `check` task).
Loading