Merge pull request #97 from turniere/gitlab-ci-skip-tests

Only run tests if ruby files change
This commit is contained in:
Jonas Seydel 2020-07-02 19:26:53 +02:00 committed by GitHub
commit 3206735a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,14 @@ rails spec:
- docker
stage: test
image: $CI_REGISTRY_IMAGE/test/commits:$CI_COMMIT_SHA
only:
changes:
- '*.rb'
- 'Gemfile'
- 'Gemfile.lock'
except:
variables:
- $SKIP_TEST
script:
- cd /app
- bundle exec rails db:migrate