diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-19 14:50:12 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-19 14:50:12 +0300 |
commit | 6cd5b7dbfaa4ff630ecbbfe351a1faac5fc71a8d (patch) | |
tree | d3563b9f60936c18a02185e2e53b424bb1b83539 /lib/tasks/lint.rake | |
parent | b3e0658cb1fbc7c8e7dd381467c656f2e675ee46 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/tasks/lint.rake')
-rw-r--r-- | lib/tasks/lint.rake | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/tasks/lint.rake b/lib/tasks/lint.rake index 2353b2dc659..9a5693e78a2 100644 --- a/lib/tasks/lint.rake +++ b/lib/tasks/lint.rake @@ -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} ***" |