Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-03-13 15:36:17 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-03-13 21:12:55 +0300
commit67729cecc12a56591160d04ea5d79614b1102dc6 (patch)
tree75bc08a351defa415c12de009d2bb3203e96a469 /.gitlab-ci.yml
parent32da7602686f2b8161175d82b121deb9e01b2db5 (diff)
Add a test which would rollback db and migrate again
Closes #29106
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index deeb01f9a3c..b1ca61604d5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -222,6 +222,13 @@ rake db:migrate:reset:
script:
- bundle exec rake db:migrate:reset
+rake db:rollback:
+ stage: test
+ <<: *use-db
+ <<: *dedicated-runner
+ script:
+ - bundle exec rake db:rollback db:migrate STEP=120
+
rake db:seed_fu:
stage: test
<<: *use-db