Commit c37c8146 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'ab/major-upgrade-path' into 'master'

Testing migration path for major upgrades - bump to testing 12->13 upgrades.

See merge request gitlab-org/gitlab!32302
parents 3d057a4a 9a06fa1b
...@@ -154,24 +154,22 @@ db:check-schema: ...@@ -154,24 +154,22 @@ db:check-schema:
script: script:
- source scripts/schema_changed.sh - source scripts/schema_changed.sh
db:migrate-from-v11.11.0: db:migrate-from-v12.10.0:
extends: .db-job-base extends: .db-job-base
variables: variables:
SETUP_DB: "false" SETUP_DB: "false"
script: script:
- export PROJECT_TO_CHECKOUT="gitlab-foss" - export PROJECT_TO_CHECKOUT="gitlab"
- export TAG_TO_CHECKOUT="v11.11.0" - export TAG_TO_CHECKOUT="v12.10.0-ee"
- '[[ ! -d "ee/" ]] || export PROJECT_TO_CHECKOUT="gitlab"' - '[[ -d "ee/" ]] || export PROJECT_TO_CHECKOUT="gitlab-foss"'
- '[[ ! -d "ee/" ]] || export TAG_TO_CHECKOUT="v11.11.0-ee"' - '[[ -d "ee/" ]] || export TAG_TO_CHECKOUT="v12.10.0"'
- git fetch https://gitlab.com/gitlab-org/$PROJECT_TO_CHECKOUT.git $TAG_TO_CHECKOUT - git fetch https://gitlab.com/gitlab-org/$PROJECT_TO_CHECKOUT.git $TAG_TO_CHECKOUT
- git checkout -f FETCH_HEAD - git checkout -f FETCH_HEAD
- sed -i "s/gem 'oj', '~> 2.17.4'//" Gemfile
- sed -i "s/gem 'bootsnap', '~> 1.0.0'/gem 'bootsnap'/" Gemfile
- bundle update google-protobuf grpc bootsnap - bundle update google-protobuf grpc bootsnap
- bundle install $BUNDLE_INSTALL_FLAGS - bundle install $BUNDLE_INSTALL_FLAGS
- date - date
- cp config/gitlab.yml.example config/gitlab.yml - cp config/gitlab.yml.example config/gitlab.yml
- bundle exec rake db:drop db:create db:schema:load db:seed_fu - bundle exec rake db:drop db:create db:structure:load db:seed_fu
- date - date
- git checkout -f $CI_COMMIT_SHA - git checkout -f $CI_COMMIT_SHA
- bundle install $BUNDLE_INSTALL_FLAGS - bundle install $BUNDLE_INSTALL_FLAGS
......
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