Commit 04e96650 authored by Yorick Peterse's avatar Yorick Peterse

Disable gettext:updated_check for CE setups

This disables gettext:updated_check in lint:all when running it on a CE
installation, such as gitlab-org/gitlab-foss. Running this check on a CE
installation will produce errors as it will find translation strings
that do not exist in any source files.
parent 7159693a
......@@ -28,14 +28,23 @@ unless Rails.env.production?
task :all do
status = 0
%w[
tasks = %w[
config_lint
lint:haml
scss_lint
gettext:lint
gettext:updated_check
lint:static_verification
].each do |task|
]
if Gitlab.ee?
# This task will fail on CE installations (e.g. gitlab-org/gitlab-foss)
# since it will detect strings in the locale files that do not exist in
# the source files. To work around this we will only enable this task on
# EE installations.
tasks << 'gettext:updated_check'
end
tasks.each do |task|
pid = Process.fork do
puts "*** Running rake task: #{task} ***"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment