summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-03-15 08:39:52 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2017-03-15 08:39:52 +0000
commit9226ce9e3090dcedcb5c9fa8595d75b5eb295726 (patch)
treeeddfb46a60e6800bc045cc9d87baa6cf85eaa7a7 /.gitlab-ci.yml
parent5694d9e5fc99972f67d5ff140ae64645590c7686 (diff)
parent83e36064998f77f40c534bad531b6cea19ec198b (diff)
downloadgitlab-ce-9226ce9e3090dcedcb5c9fa8595d75b5eb295726.tar.gz
Merge branch 'test-db-rollback' into 'master'
Add a test which would rollback db and migrate again Closes #29106 See merge request !9908
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 492f5ef715d..9aecdde266d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -224,6 +224,14 @@ 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 STEP=120
+ - bundle exec rake db:migrate
+
rake db:seed_fu:
stage: test
<<: *use-db