mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
build: remove unused Rakefile
The Rakefile was intended as an entry point to run browser tests and to
upload screenshots to commons. That was wrapped in the Jenkins job
`language-screenshots-VisualEditor` which last ran in June 2018.
The rest of the Ruby part got removed back in 2020 by 2b7ab7b479
.
Bug: T360425
Change-Id: I89d8f48b93f112437483a83a3303192e6728ebed
This commit is contained in:
parent
b446420306
commit
07a0f8d6d9
28
Rakefile
28
Rakefile
|
@ -1,28 +0,0 @@
|
|||
require 'bundler/setup'
|
||||
|
||||
require 'rubocop/rake_task'
|
||||
RuboCop::RakeTask.new(:rubocop) do |task|
|
||||
# If you use mediawiki-vagrant, rubocop will by default use its .rubocop.yml.
|
||||
|
||||
# This line makes it explicit that you want .rubocop.yml from the directory
|
||||
# where `bundle exec rake` is executed:
|
||||
task.options = ['-c', '.rubocop.yml']
|
||||
end
|
||||
|
||||
task :default => [:test]
|
||||
|
||||
desc 'Run all build/tests commands (CI entry point)'
|
||||
task :test => [:rubocop]
|
||||
|
||||
desc 'Upload screenshots to commons.wikimedia.org'
|
||||
task :commons_upload do
|
||||
require 'commons_upload'
|
||||
required_envs = %w[
|
||||
MEDIAWIKI_API_UPLOAD_URL
|
||||
MEDIAWIKI_USER
|
||||
MEDIAWIKI_PASSWORD
|
||||
]
|
||||
has_all_envs = required_envs.all? { |env| ENV.key?(env) }
|
||||
fail "Requires env variables:\n#{required_envs}" unless has_all_envs
|
||||
CommonsUpload.images
|
||||
end
|
Loading…
Reference in a new issue