Commit 969bfaec authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'rspec-rails-fast-failure-template' into 'master'

Add Verify/FailFast CI template

See merge request gitlab-org/gitlab!31812
parents d7ba793d 747d00c8
---
title: Add Verify/FailFast CI template
merge_request: 31812
author:
type: added
rspec-rails-modified-path-specs:
stage: .pre
rules:
- if: $CI_MERGE_REQUEST_EVENT_TYPE == "merged_result" || $CI_MERGE_REQUEST_EVENT_TYPE == "merge_train"
changes: ["**/*.rb"]
script:
- gem install test_file_finder
- spec_files=$(tff $(git diff --name-only "$CI_MERGE_REQUEST_TARGET_BRANCH_SHA..$CI_MERGE_REQUEST_SOURCE_BRANCH_SHA"))
- |
if [ -n "$spec_files" ]
then
bundle install
bundle exec rspec -- $spec_files
else
echo "No relevant spec files found by tff"
exit 0
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment