summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-04-10 17:05:41 +0000
committerRémy Coutable <remy@rymai.me>2019-04-10 17:05:41 +0000
commitddab30ad3561c6834fd779458ce89084c8a95ca5 (patch)
treebae28f15b3486e0f616491de33a5ebbff9d8dbd4
parent909750629a89da5431faf90f491b274cff6855a1 (diff)
parent97552924d0491dc10c3569e606a151ec13cd8bea (diff)
downloadgitlab-ce-ddab30ad3561c6834fd779458ce89084c8a95ca5.tar.gz
Merge branch 'ce-10834-support-fast-unit-tests-in-ee' into 'master'
CE: Resolve "Support fast unit tests in EE" See merge request gitlab-org/gitlab-ce!26861
-rw-r--r--.gitlab-ci.yml5
-rw-r--r--spec/support/helpers/stub_configuration.rb3
-rw-r--r--spec/support/helpers/stub_object_storage.rb3
3 files changed, 11 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9febc15e84a..8f80f1656d6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -561,6 +561,11 @@ rspec-mysql:
<<: *only-schedules-master
parallel: 50
+rspec-fast-spec-helper:
+ <<: *rspec-metadata-pg
+ script:
+ - bundle exec rspec spec/fast_spec_helper.rb
+
.rspec-quarantine: &rspec-quarantine
<<: *only-schedules-master
script:
diff --git a/spec/support/helpers/stub_configuration.rb b/spec/support/helpers/stub_configuration.rb
index cfa9151b2d7..3e507fb133e 100644
--- a/spec/support/helpers/stub_configuration.rb
+++ b/spec/support/helpers/stub_configuration.rb
@@ -120,3 +120,6 @@ module StubConfiguration
end
end
end
+
+require_relative '../../../ee/spec/support/helpers/ee/stub_configuration' if
+ Dir.exist?("#{__dir__}/../../../ee")
diff --git a/spec/support/helpers/stub_object_storage.rb b/spec/support/helpers/stub_object_storage.rb
index 30c8477f16a..d31f9908714 100644
--- a/spec/support/helpers/stub_object_storage.rb
+++ b/spec/support/helpers/stub_object_storage.rb
@@ -73,3 +73,6 @@ module StubObjectStorage
EOS
end
end
+
+require_relative '../../../ee/spec/support/helpers/ee/stub_object_storage' if
+ Dir.exist?("#{__dir__}/../../../ee")