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
Tatuya Kamada
gitlab-ce
Commits
8cc7a2dd
Commit
8cc7a2dd
authored
8 years ago
by
Kamil Trzcinski
Committed by
Grzegorz Bizon
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store all simplecov configuration in one file
parent
2d397884
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
22 deletions
+24
-22
.gitlab-ci.yml
.gitlab-ci.yml
+4
-0
features/support/env.rb
features/support/env.rb
+1
-11
spec/simplecov_env.rb
spec/simplecov_env.rb
+18
-0
spec/spec_helper.rb
spec/spec_helper.rb
+1
-11
No files found.
.gitlab-ci.yml
View file @
8cc7a2dd
...
...
@@ -40,6 +40,7 @@ stages:
paths
:
-
knapsack/
artifacts
:
expire_in
:
31d
paths
:
-
knapsack/
...
...
@@ -70,6 +71,7 @@ update-coverage:
script
:
-
bundle exec scripts/merge-simplecov
artifacts
:
expire_in
:
31d
paths
:
-
coverage/
...
...
@@ -93,6 +95,7 @@ update-coverage:
-
cp knapsack/rspec_report.json ${KNAPSACK_REPORT_PATH}
-
knapsack rspec
artifacts
:
expire_in
:
31d
paths
:
-
knapsack/
-
coverage/
...
...
@@ -110,6 +113,7 @@ update-coverage:
-
cp knapsack/spinach_report.json ${KNAPSACK_REPORT_PATH}
-
knapsack spinach "-r rerun" || retry '[ ! -e tmp/spinach-rerun.txt ] || bundle exec spinach -r rerun $(cat tmp/spinach-rerun.txt)'
artifacts
:
expire_in
:
31d
paths
:
-
knapsack/
-
coverage/
...
...
This diff is collapsed.
Click to expand it.
features/support/env.rb
View file @
8cc7a2dd
if
ENV
[
'SIMPLECOV'
]
require
'simplecov'
SimpleCov
.
start
:rails
do
if
ENV
[
'CI_BUILD_NAME'
]
coverage_dir
"coverage/
#{
ENV
[
'CI_BUILD_NAME'
]
}
"
command_name
ENV
[
'CI_BUILD_NAME'
]
merge_timeout
7200
end
end
end
require_relative
Rails
.
root
.
join
(
'spec'
,
'simplecov_env'
)
ENV
[
'RAILS_ENV'
]
=
'test'
require
'./config/environment'
...
...
This diff is collapsed.
Click to expand it.
spec/simplecov_env.rb
0 → 100644
View file @
8cc7a2dd
if
ENV
[
'SIMPLECOV'
]
require
'simplecov'
SimpleCov
.
start
:rails
do
if
ENV
[
'CI_BUILD_NAME'
]
coverage_dir
"coverage/
#{
ENV
[
'CI_BUILD_NAME'
]
}
"
command_name
ENV
[
'CI_BUILD_NAME'
]
merge_timeout
7200
end
add_filter
'/vendor/ruby/'
add_group
'Services'
,
'app/services'
add_group
'Finders'
,
'app/finders'
add_group
'Uploaders'
,
'app/uploaders'
add_group
'Validators'
,
'app/validators'
end
end
This diff is collapsed.
Click to expand it.
spec/spec_helper.rb
View file @
8cc7a2dd
if
ENV
[
'SIMPLECOV'
]
require
'simplecov'
SimpleCov
.
start
:rails
do
if
ENV
[
'CI_BUILD_NAME'
]
coverage_dir
"coverage/
#{
ENV
[
'CI_BUILD_NAME'
]
}
"
command_name
ENV
[
'CI_BUILD_NAME'
]
merge_timeout
7200
end
end
end
require_relative
'simplecov_env'
ENV
[
"RAILS_ENV"
]
||=
'test'
...
...
This diff is collapsed.
Click to expand it.
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