diff options
| author | Rémy Coutable <remy@rymai.me> | 2018-01-15 18:16:21 +0000 |
|---|---|---|
| committer | Rémy Coutable <remy@rymai.me> | 2018-01-15 18:16:21 +0000 |
| commit | 9e70ff345fa68d700b77b5939d34870ee61cb131 (patch) | |
| tree | 5c1aa2a19b4ecf8e98b30c8182f562288fb89209 /lib/tasks | |
| parent | c75a8af16f0f2bfd407cc2c8bfd42312c1115c79 (diff) | |
| parent | fd54d7a2b6d6dde9a53c493585b205c93ae393dc (diff) | |
| download | gitlab-ce-9e70ff345fa68d700b77b5939d34870ee61cb131.tar.gz | |
Merge branch '1819-override-ce' into 'master'
CE: Override module to specify that we're overriding
See merge request gitlab-org/gitlab-ce!16131
Diffstat (limited to 'lib/tasks')
| -rw-r--r-- | lib/tasks/dev.rake | 5 | ||||
| -rw-r--r-- | lib/tasks/lint.rake | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake index e65609d7001..4beb94eeb8e 100644 --- a/lib/tasks/dev.rake +++ b/lib/tasks/dev.rake @@ -7,4 +7,9 @@ namespace :dev do Rake::Task["gitlab:setup"].invoke Rake::Task["gitlab:shell:setup"].invoke end + + desc "GitLab | Eager load application" + task load: :environment do + Rails.application.eager_load! + end end diff --git a/lib/tasks/lint.rake b/lib/tasks/lint.rake index 7b63e93db0e..3ab406eff2c 100644 --- a/lib/tasks/lint.rake +++ b/lib/tasks/lint.rake @@ -1,5 +1,17 @@ unless Rails.env.production? namespace :lint do + task :static_verification_env do + ENV['STATIC_VERIFICATION'] = 'true' + end + + desc "GitLab | lint | Static verification" + task static_verification: %w[ + lint:static_verification_env + dev:load + ] do + Gitlab::Utils::Override.verify! + end + desc "GitLab | lint | Lint JavaScript files using ESLint" task :javascript do Rake::Task['eslint'].invoke |
