Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ac681e99
Commit
ac681e99
authored
Nov 08, 2021
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder db related jobs
This way db:check-schema will extend something from earlier lines
parent
8209d6d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
.gitlab/ci/rails.gitlab-ci.yml
.gitlab/ci/rails.gitlab-ci.yml
+24
-24
No files found.
.gitlab/ci/rails.gitlab-ci.yml
View file @
ac681e99
...
...
@@ -338,30 +338,16 @@ rspec fast_spec_helper minimal:
-
.minimal-rspec-tests
-
.rails:rules:ee-and-foss-fast_spec_helper:minimal
db:
migrate:reset
:
db:
rollback
:
extends
:
.db-job-base
script
:
-
bundle exec rake db:migrate:reset
db:check-schema:
extends
:
-
db:migrate-from-previous-major-version
-
.rails:rules:ee-mr-and-default-branch-only
variables
:
TAG_TO_CHECKOUT
:
"
v14.4.0"
script
:
-
run_timed_command "bundle exec rake db:migrate"
-
scripts/schema_changed.sh
-
scripts/validate_migration_timestamps
-
bundle exec rake db:migrate VERSION=20181228175414
-
bundle exec rake db:migrate SKIP_SCHEMA_VERSION_CHECK=true
db:check-migrations:
extends
:
-
.db-job-base
-
.rails:rules:ee-and-foss-mr-with-migration
db:migrate:reset:
extends
:
.db-job-base
script
:
-
git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME:$CI_MERGE_REQUEST_TARGET_BRANCH_NAME --depth
20
-
scripts/validate_migration_schema
allow_failure
:
true
-
bundle exec rake db:migrate:reset
db:migrate-from-previous-major-version:
extends
:
.db-job-base
...
...
@@ -383,11 +369,25 @@ db:migrate-from-previous-major-version:
script
:
-
run_timed_command "bundle exec rake db:migrate"
db:rollback:
extends
:
.db-job-base
db:check-schema:
extends
:
-
db:migrate-from-previous-major-version
-
.rails:rules:ee-mr-and-default-branch-only
variables
:
TAG_TO_CHECKOUT
:
"
v14.4.0"
script
:
-
bundle exec rake db:migrate VERSION=20181228175414
-
bundle exec rake db:migrate SKIP_SCHEMA_VERSION_CHECK=true
-
run_timed_command "bundle exec rake db:migrate"
-
scripts/schema_changed.sh
-
scripts/validate_migration_timestamps
db:check-migrations:
extends
:
-
.db-job-base
-
.rails:rules:ee-and-foss-mr-with-migration
script
:
-
git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME:$CI_MERGE_REQUEST_TARGET_BRANCH_NAME --depth
20
-
scripts/validate_migration_schema
allow_failure
:
true
db:gitlabcom-database-testing:
extends
:
.rails:rules:db:gitlabcom-database-testing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment