CI: Fail jobs on RuboCop warnings
Usage: fail_on_warnings "some command" || exit 1 run_timed_command "fail_on_warnings some command" Example: $ run_timed_command "fail_on_warnings ls invalid" $ fail_on_warnings ls invalid There were warnings: ls: cannot access 'invalid': No such file or directory ==> 'fail_on_warnings ls invalid' failed (1) in 0 seconds.
显示
- .gitlab/ci/rails.gitlab-ci.yml 1 个添加, 1 个删除.gitlab/ci/rails.gitlab-ci.yml
- .gitlab/ci/static-analysis.gitlab-ci.yml 5 个添加, 5 个删除.gitlab/ci/static-analysis.gitlab-ci.yml
- scripts/allowed_warnings.txt 11 个添加, 0 个删除scripts/allowed_warnings.txt
- scripts/static-analysis 8 个添加, 20 个删除scripts/static-analysis
- scripts/utils.sh 31 个添加, 0 个删除scripts/utils.sh
- spec/models/concerns/triggerable_hooks_spec.rb 1 个添加, 1 个删除spec/models/concerns/triggerable_hooks_spec.rb
加载中
想要评论请 注册 或 登录