Run tests in docker container

This commit is contained in:
Daniel Schädler 2019-06-20 20:28:53 +02:00
parent c9c1b74e48
commit 52d3965df0
1 changed files with 1 additions and 2 deletions

View File

@ -16,9 +16,8 @@ kaniko:
rails spec: rails spec:
stage: test stage: test
image: ruby:2.6.2 image: $CI_REGISTRY_IMAGE/test/commits:$CI_COMMIT_SHA
script: script:
- bundle install --path /cache
- bundle exec rails db:migrate RAILS_ENV=test - bundle exec rails db:migrate RAILS_ENV=test
- bundle exec rails spec - bundle exec rails spec