Merge pull request #97 from turniere/gitlab-ci-skip-tests
Only run tests if ruby files change
This commit is contained in:
commit
3206735a25
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue