diff options
author | Stan Hu <stanhu@gmail.com> | 2017-12-27 05:41:28 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-01-02 12:44:51 -0800 |
commit | ad88e3f88d2ac287f5a95952f95da4feae90944e (patch) | |
tree | b4cbd1c5722fdfe2c15ac24588c8c74b94a21f22 /.gitlab-ci.yml | |
parent | ff077cf7dc5cfd7c6c6206d801ea3f326f7af1aa (diff) | |
download | gitlab-ce-ad88e3f88d2ac287f5a95952f95da4feae90944e.tar.gz |
Fix `rake db:seed_fu` not doing anything in CIsh-fix-seed-fu-ci
The default behavior of seed_fu is to load the fixtures using the RAILS_ENV
environment. In CI, since we set RAILS_ENV=test, nothing is ever
loaded. Instead of `rake db:seed_fu`, use `rake gitlab:setup`, which sets up
MySQL properly with limits.
Closes #41517
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6ca2fb471aa..e98ac200332 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -517,10 +517,12 @@ db:rollback-mysql: SIZE: "1" SETUP_DB: "false" CREATE_DB_USER: "true" + FIXTURE_PATH: db/fixtures/development script: - git clone https://gitlab.com/gitlab-org/gitlab-test.git /home/git/repositories/gitlab-org/gitlab-test.git - - bundle exec rake db:setup db:seed_fu + - scripts/gitaly-test-spawn + - force=yes bundle exec rake gitlab:setup artifacts: when: on_failure expire_in: 1d |