Zfilipin has uploaded a new change for review. https://gerrit.wikimedia.org/r/166563
Change subject: Added job template and builder that runs rubocop, Ruby linter ...................................................................... Added job template and builder that runs rubocop, Ruby linter See also commit in zuul-config[1]. 1: https://gerrit.wikimedia.org/r/#/c/152926/ Bug: 69245 Change-Id: I061f10cccaf5e91f807b627904ac9bdb54111acc --- M jjb/job-templates.yaml M jjb/macro.yaml 2 files changed, 24 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/integration/config refs/changes/63/166563/1 diff --git a/jjb/job-templates.yaml b/jjb/job-templates.yaml index 968c637..961e4db 100644 --- a/jjb/job-templates.yaml +++ b/jjb/job-templates.yaml @@ -235,6 +235,18 @@ - puppet-validate - job-template: + name: '{name}-rubocop' + node: contintLabsSlave && UbuntuPrecise + defaults: use-remote-zuul-no-submodules + concurrent: true + logrotate: + daysToKeep: 90 + triggers: + - zuul + builders: + - rubocop + +- job-template: name: '{name}-rubylint' defaults: use-remote-zuul-no-submodules concurrent: true diff --git a/jjb/macro.yaml b/jjb/macro.yaml index ca69cd2..6c59ea0 100644 --- a/jjb/macro.yaml +++ b/jjb/macro.yaml @@ -622,6 +622,18 @@ - shell: | find "$WORKSPACE" -type f -name '*.rb' -print0 | xargs -t -n1 -0 {interpreter} -c +# Run rubocop, Ruby linter +- builder: + name: rubocop + builders: + - shell: | + # Shared cache of gems to avoid hitting rubygems all the time + # See https://github.com/bundler/bundler/issues/2856 + export GEM_HOME="$WORKSPACE/../gems" + gem install rubocop + + rubocop + - builder: name: tox builders: -- To view, visit https://gerrit.wikimedia.org/r/166563 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I061f10cccaf5e91f807b627904ac9bdb54111acc Gerrit-PatchSet: 1 Gerrit-Project: integration/config Gerrit-Branch: master Gerrit-Owner: Zfilipin <zfili...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits