Alexandros Kosiaris has submitted this change and it was merged. Change subject: Add rubocop and 'test' target to Rakefile ......................................................................
Add rubocop and 'test' target to Rakefile This is needed for our continuous integration. Bug: T117993 Change-Id: Ia288f7e05339f466dc2a2558f5cf24dfef08f460 --- M Rakefile 1 file changed, 8 insertions(+), 0 deletions(-) Approvals: Hashar: Looks good to me, but someone else must approve Alexandros Kosiaris: Looks good to me, approved jenkins-bot: Verified diff --git a/Rakefile b/Rakefile index 2d2c6a6..79615e6 100644 --- a/Rakefile +++ b/Rakefile @@ -25,6 +25,11 @@ # $ rake spec # +require 'bundler/setup' +require 'rubocop/rake_task' + +RuboCop::RakeTask.new(:rubocop) + # Only care about color when using a tty. if Rake.application.tty_output? # Since we are going to use puppet internal stuff, we might as @@ -82,6 +87,9 @@ system('puppet-lint .') end +desc 'Run all build/tests commands (CI entry point)' +task test: [:rubocop] + desc "Build documentation" task :doc do doc_cmd = [ -- To view, visit https://gerrit.wikimedia.org/r/252686 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ia288f7e05339f466dc2a2558f5cf24dfef08f460 Gerrit-PatchSet: 5 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Zfilipin <zfili...@wikimedia.org> Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: Yuvipanda <yuvipa...@wikimedia.org> Gerrit-Reviewer: Zfilipin <zfili...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits