1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #
- # Test the migration from the `stable-6.0` branch to `develop`.
- #
- .template_migration:
- stage: test
- before_script: []
- script:
- # First, checkout stable and set it up.
- - git fetch --unshallow
- - git checkout stable-6.0
- - !reference [.scripts, source_rvm]
- - rvm use 3.1.3
- - !reference [.scripts, bundle_install]
- - !reference [.scripts, configure_environment]
- - !reference [.scripts, zammad_db_init]
- # Then, switch to the current commit, migrate to it and run a few selected tests.
- - git checkout $CI_COMMIT_SHA
- - rvm use 3.2.4
- - !reference [.scripts, bundle_install]
- # Force redis usage, even if it was disabled by the initial configure_environment script of stable.
- - export REDIS_URL=redis://redis
- - bundle exec rails db:migrate
- - RAILS_CHECK_PENDING_MIGRATIONS=1 bundle exec rspec --profile 10 spec/db -t ~searchindex
- rspec:migration:postgresql:
- extends:
- - .template_migration
- services:
- - !reference [.services, postgresql]
- - !reference [.services, redis]
- rspec:migration:mysql:
- extends:
- - .template_migration
- services:
- - !reference [.services, mysql]
- - !reference [.services, redis]
- rspec:migration:mariadb:
- extends:
- - .template_migration
- services:
- - !reference [.services, mariadb]
- - !reference [.services, redis]
|