@@ -48,14 +48,18 @@ version: 2.1
48
48
name : Create test app
49
49
command : COVERAGE=true PARALLEL_TEST_PROCESSORS=4 bin/rake setup
50
50
51
+ .restore_test_reporter : &restore_test_reporter
52
+ attach_workspace :
53
+ at : bin
54
+
51
55
.restore_coverage : &restore_coverage
52
56
attach_workspace :
53
57
at : coverage
54
58
55
59
.format_coverage : &format_coverage
56
60
run :
57
61
name : Format coverage
58
- command : coverage /test-reporter format-coverage --input-type simplecov --output coverage/codeclimate.$CIRCLE_JOB.json
62
+ command : bin /test-reporter format-coverage --input-type simplecov --output coverage/codeclimate.$CIRCLE_JOB.json
59
63
60
64
.save_coverage : &save_coverage
61
65
persist_to_workspace :
@@ -68,8 +72,8 @@ version: 2.1
68
72
name : Upload coverage results to Code Climate
69
73
command : |
70
74
# The parts number should match the number of jobs under upload_coverage/requires
71
- coverage /test-reporter sum-coverage coverage/codeclimate.*.json --parts 20 --output coverage/codeclimate.total.json
72
- coverage /test-reporter upload-coverage --input coverage/codeclimate.total.json
75
+ bin /test-reporter sum-coverage coverage/codeclimate.*.json --parts 20 --output coverage/codeclimate.total.json
76
+ bin /test-reporter upload-coverage --input coverage/codeclimate.total.json
73
77
74
78
.save_test_app : &save_test_app
75
79
persist_to_workspace :
@@ -137,7 +141,7 @@ version: 2.1
137
141
- *save_cache
138
142
- *restore_test_app_from_workspace
139
143
- *restore_test_times
140
- - *restore_coverage
144
+ - *restore_test_reporter
141
145
- *run_tests
142
146
- *run_features
143
147
- *format_coverage
@@ -151,7 +155,7 @@ version: 2.1
151
155
- *copy_current_gemfile
152
156
- *restore_cache
153
157
- *install_dependencies
154
- - *restore_coverage
158
+ - *restore_test_reporter
155
159
- *save_cache
156
160
- *create_test_app
157
161
- *format_coverage
@@ -167,12 +171,12 @@ jobs:
167
171
- run :
168
172
name : Download Code Climate test-reporter
169
173
command : |
170
- mkdir coverage
171
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-0.6.3-linux-amd64 > coverage /test-reporter
172
- chmod +x coverage /test-reporter
174
+ mkdir bin
175
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-0.6.3-linux-amd64 > bin /test-reporter
176
+ chmod +x bin /test-reporter
173
177
174
178
- persist_to_workspace :
175
- root : coverage
179
+ root : bin
176
180
paths :
177
181
- test-reporter
178
182
@@ -183,6 +187,7 @@ jobs:
183
187
CC_TEST_REPORTER_ID : 8d5fcf7abea6d56c625104a9d1a81140a588a7f546f4fa9de9bc6ffc8feaaf70
184
188
185
189
steps :
190
+ - *restore_test_reporter
186
191
- *restore_coverage
187
192
- *submit_coverage
188
193
@@ -247,7 +252,7 @@ jobs:
247
252
- *install_dependencies
248
253
- *save_cache
249
254
- *generate_docs
250
- - *restore_coverage
255
+ - *restore_test_reporter
251
256
- *run_lints
252
257
- *run_bug_report_template
253
258
- *format_coverage
0 commit comments