jenkins-bot has submitted this change and it was merged. Change subject: Introduce rake as an entry point ......................................................................
Introduce rake as an entry point Require 'bundle install' then one can just 'rake' to execute rubocop, spec and yard. Introduce 'test' task which runs the above three tasks. Make 'test' the default task. Alias doc to yard. See T104024 Define a CI entry point for Ruby code Change-Id: Ie0af793dc826408e4af8f1a7cb95b09bb04c06e0 --- A Rakefile 1 file changed, 18 insertions(+), 0 deletions(-) Approvals: Zfilipin: Looks good to me, approved jenkins-bot: Verified diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..fbef95e --- /dev/null +++ b/Rakefile @@ -0,0 +1,18 @@ +# pre-flight +require 'bundler/setup' + +require 'rspec/core/rake_task' +require 'rubocop/rake_task' +require 'yard' + +RSpec::Core::RakeTask.new(:spec) +RuboCop::RakeTask.new(:rubocop) +YARD::Rake::YardocTask.new(:yard) + +task default: [:test] + +desc 'Run all build/tests commands (CI entry point)' +task test: [:rubocop, :spec, :yard] + +desc 'Generate all documentations' +task doc: [:yard] -- To view, visit https://gerrit.wikimedia.org/r/246253 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ie0af793dc826408e4af8f1a7cb95b09bb04c06e0 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/selenium Gerrit-Branch: master Gerrit-Owner: Hashar <[email protected]> Gerrit-Reviewer: Dduvall <[email protected]> Gerrit-Reviewer: Zfilipin <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
