Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-03 00:06:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-03 00:06:51 +0300
commita19a376bf35b2009566e86b8190662c21ed7e2ba (patch)
tree46d3ea7f44a0a732b96fcbae0cf09d3cfd8ec9dc /lib/quality
parent556c79d6cc3d7b24ecbba3a79f8432eb3fcf5c7e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/quality')
-rw-r--r--lib/quality/test_level.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/quality/test_level.rb b/lib/quality/test_level.rb
index b7822adf6ed..90a8096cc2b 100644
--- a/lib/quality/test_level.rb
+++ b/lib/quality/test_level.rb
@@ -36,6 +36,10 @@ module Quality
workers
elastic_integration
],
+ migration: %w[
+ migrations
+ lib/gitlab/background_migration
+ ],
integration: %w[
controllers
mailers
@@ -62,6 +66,10 @@ module Quality
def level_for(file_path)
case file_path
+ # Detect migration first since some background migration tests are under
+ # spec/lib/gitlab/background_migration and tests under spec/lib are unit by default
+ when regexp(:migration)
+ :migration
when regexp(:unit)
:unit
when regexp(:integration)