Hashar has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/246253

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, 19 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/selenium 
refs/changes/53/246253/1

diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..fb0d2ba
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,19 @@
+# pre-flight
+require 'rubygems'
+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: newchange
Gerrit-Change-Id: Ie0af793dc826408e4af8f1a7cb95b09bb04c06e0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/selenium
Gerrit-Branch: master
Gerrit-Owner: Hashar <has...@free.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to