Commit a84c9718 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve redis config tasks for migration paths job

parent d0f0bad2
...@@ -279,19 +279,20 @@ bundler:audit: ...@@ -279,19 +279,20 @@ bundler:audit:
migration paths: migration paths:
stage: test stage: test
<<: *use-db <<: *use-db
variables:
SETUP_DB: "false"
only: only:
- master@gitlab-org/gitlab-ce - master@gitlab-org/gitlab-ce
script: script:
- git checkout HEAD . - git checkout HEAD .
- git fetch --tags - git fetch --tags
- git checkout v8.5.9 - git checkout v8.5.9
- mv config/resque.yml config/resque.yml.new - cp config/resque.yml.example config/resque.yml
- 'echo test: unix:/var/opt/gitlab/redis/redis.socket > config/resque.yml' - sed -i 's/localhost/redis/g' config/resque.yml
- bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}" --retry=3 - bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}" --retry=3
- rake db:drop db:create db:schema:load db:seed_fu - rake db:drop db:create db:schema:load db:seed_fu
- git checkout $CI_BUILD_REF - git checkout $CI_BUILD_REF
- rm config/resque.yml - source scripts/prepare_build.sh
- mv config/resque.yml.new config/resque.yml
- rake db:migrate - rake db:migrate
coverage: coverage:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment