Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
747d00c8
Commit
747d00c8
authored
May 12, 2020
by
drew cimino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Verify/FailFast CI template
parent
a1fc9259
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
changelogs/unreleased/rspec-rails-fast-failure-template.yml
changelogs/unreleased/rspec-rails-fast-failure-template.yml
+5
-0
lib/gitlab/ci/templates/Verify/FailFast.gitlab-ci.yml
lib/gitlab/ci/templates/Verify/FailFast.gitlab-ci.yml
+17
-0
No files found.
changelogs/unreleased/rspec-rails-fast-failure-template.yml
0 → 100644
View file @
747d00c8
---
title
:
Add Verify/FailFast CI template
merge_request
:
31812
author
:
type
:
added
lib/gitlab/ci/templates/Verify/FailFast.gitlab-ci.yml
0 → 100644
View file @
747d00c8
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment