summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-03-13 20:36:17 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-03-14 02:12:55 +0800
commit67729cecc12a56591160d04ea5d79614b1102dc6 (patch)
tree75bc08a351defa415c12de009d2bb3203e96a469 /.gitlab-ci.yml
parent32da7602686f2b8161175d82b121deb9e01b2db5 (diff)
downloadgitlab-ce-67729cecc12a56591160d04ea5d79614b1102dc6.tar.gz
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