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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
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
Changes
2
Show 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:
...
@@ -7,8 +7,6 @@ cache:
variables
:
variables
:
MYSQL_ALLOW_EMPTY_PASSWORD
:
"
1"
MYSQL_ALLOW_EMPTY_PASSWORD
:
"
1"
# retry tests only in CI environment
RSPEC_RETRY_RETRY_COUNT
:
"
3"
RAILS_ENV
:
"
test"
RAILS_ENV
:
"
test"
SIMPLECOV
:
"
true"
SIMPLECOV
:
"
true"
SETUP_DB
:
"
true"
SETUP_DB
:
"
true"
...
...
spec/spec_helper.rb
View file @
1761da51
...
@@ -57,6 +57,13 @@ RSpec.configure do |config|
...
@@ -57,6 +57,13 @@ RSpec.configure do |config|
TestEnv
.
init
TestEnv
.
init
end
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
|
config
.
around
(
:each
,
:caching
)
do
|
example
|
caching_store
=
Rails
.
cache
caching_store
=
Rails
.
cache
Rails
.
cache
=
ActiveSupport
::
Cache
::
MemoryStore
.
new
if
example
.
metadata
[
:caching
]
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