diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-08-28 02:36:32 +0200 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-08-28 15:37:56 +0200 |
commit | fd62661168d65f459a7303ee875de6f2ff88c417 (patch) | |
tree | d6f40bc560f6f8309b0e10d48f0fa3e8299c395d | |
parent | 6303a02ba2c63687d03c72754d398e3e3473ac61 (diff) | |
download | gitlab-ce-fd62661168d65f459a7303ee875de6f2ff88c417.tar.gz |
Fix seed_fu
-rw-r--r-- | .gitlab-ci.yml | 4 | ||||
-rw-r--r-- | db/fixtures/development/04_project.rb | 2 |
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 |