summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-09-08 14:19:07 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-09-11 12:20:33 -0400
commit9de71db540cb56aad9c82477248b2b5fe1ede63d (patch)
tree4fd784339d6cdb846fae69a44282e1d5c95f0234
parent7baa77494f34e326f0b920336fd48fb5d17ccd47 (diff)
downloadgitlab-ce-rs-separate-migration-specs.tar.gz
Run migration specs separately as part of the `migration:path-*` jobsrs-separate-migration-specs
Migration specs have a history of polluting subsequent specs, and because the actual migrations themselves are run in isolation, the specs aren't made less valid by also being run in isolation.
-rw-r--r--.gitlab-ci.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f27d809af3c..c89415d97db 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -95,7 +95,7 @@ stages:
- cp ${FLAKY_RSPEC_SUITE_REPORT_PATH} ${ALL_FLAKY_RSPEC_REPORT_PATH}
- '[[ -f $NEW_FLAKY_RSPEC_REPORT_PATH ]] || echo "{}" > ${NEW_FLAKY_RSPEC_REPORT_PATH}'
- scripts/gitaly-test-spawn
- - knapsack rspec "--color --format documentation"
+ - knapsack rspec "--color --format documentation --tag ~migration"
artifacts:
expire_in: 31d
when: always
@@ -462,12 +462,13 @@ db:migrate:reset-mysql:
- bundle install $BUNDLE_INSTALL_FLAGS
- . scripts/prepare_build.sh
- bundle exec rake db:migrate
+ - bundle exec rspec --color --format documentation --tag migration
-migration:path-pg:
+migration-pg:
<<: *migration-paths
<<: *use-pg
-migration:path-mysql:
+migration-mysql:
<<: *migration-paths
<<: *use-mysql