Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
GitLab FOSS
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GitLab.org
GitLab FOSS
Commits
1761da51
Commit
1761da51
authored
Mar 09, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Retry only on feature specs that use JS, on CI
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
5f7592d5
Pipeline
#6990015
passed with stages
in 86 minutes and 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
.gitlab-ci.yml
.gitlab-ci.yml
+0
-2
spec/spec_helper.rb
spec/spec_helper.rb
+7
-0
No files found.
.gitlab-ci.yml
View file @
1761da51
...
...
@@ -7,8 +7,6 @@ cache:
variables
:
MYSQL_ALLOW_EMPTY_PASSWORD
:
"
1"
# retry tests only in CI environment
RSPEC_RETRY_RETRY_COUNT
:
"
3"
RAILS_ENV
:
"
test"
SIMPLECOV
:
"
true"
SETUP_DB
:
"
true"
...
...
spec/spec_helper.rb
View file @
1761da51
...
...
@@ -57,6 +57,13 @@ RSpec.configure do |config|
TestEnv
.
init
end
if
ENV
[
'CI'
]
# Retry only on feature specs that use JS
config
.
around
:each
,
:js
do
|
ex
|
ex
.
run_with_retry
retry:
3
end
end
config
.
around
(
:each
,
:caching
)
do
|
example
|
caching_store
=
Rails
.
cache
Rails
.
cache
=
ActiveSupport
::
Cache
::
MemoryStore
.
new
if
example
.
metadata
[
:caching
]
...
...
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