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:
authorGabriel Mazetto <brodock@gmail.com>2017-08-28 03:36:32 +0300
committerGabriel Mazetto <brodock@gmail.com>2017-08-28 16:37:56 +0300
commitfd62661168d65f459a7303ee875de6f2ff88c417 (patch)
treed6f40bc560f6f8309b0e10d48f0fa3e8299c395d
parent6303a02ba2c63687d03c72754d398e3e3473ac61 (diff)
Fix seed_fu
-rw-r--r--.gitlab-ci.yml4
-rw-r--r--db/fixtures/development/04_project.rb2
2 files changed, 2 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index aec9feffd84..cec3d71f0a3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -401,10 +401,8 @@ db:rollback-mysql:
variables:
SIZE: "1"
SETUP_DB: "false"
- RAILS_ENV: "development"
script:
- - git clone https://gitlab.com/gitlab-org/gitlab-test.git
- /home/git/repositories/gitlab-org/gitlab-test.git
+ - cp -R db/fixtures/development db/fixtures/test
- bundle exec rake db:setup db:seed_fu
artifacts:
when: on_failure
diff --git a/db/fixtures/development/04_project.rb b/db/fixtures/development/04_project.rb
index c0b7ee5e935..b35797502df 100644
--- a/db/fixtures/development/04_project.rb
+++ b/db/fixtures/development/04_project.rb
@@ -75,7 +75,7 @@ Sidekiq::Testing.inline! do
project.send(:_run_after_commit_queue)
end
- if project.errors.any? && project.valid_repo?
+ if project.errors.messages.empty? && project.valid_repo?
print '.'
else
puts project.errors.full_messages