Skip to content

Commit 23f1258

Browse files
Do not upload test reports to Codecov (#1092)
* chore(ci): remove test fixtures prior to upload
1 parent 9765d91 commit 23f1258

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.circleci/config.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ jobs:
129129
- checkout
130130
- attach_workspace:
131131
at: .
132+
- run:
133+
name: Remove test coverage files
134+
command: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
132135
- run:
133136
name: Run Alpine binary -f (dry run)
134137
command: |
@@ -166,6 +169,9 @@ jobs:
166169
- run:
167170
name: Start Squid
168171
command: squid
172+
- run:
173+
name: Remove test coverage files
174+
command: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
169175
- run:
170176
name: Run Alpine binary auto-detect (dry run)
171177
command: |
@@ -198,6 +204,9 @@ jobs:
198204
- run:
199205
name: Remove .git directory
200206
command: rm -rf .git
207+
- run:
208+
name: Remove test coverage files
209+
command: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
201210
- run:
202211
name: Run Alpine binary -f (dry run)
203212
command: |
@@ -230,6 +239,9 @@ jobs:
230239
name: Confirm that linux uploader binary is static
231240
command: |
232241
(file out/codecov-linux | grep 'static') || exit ${?}
242+
- run:
243+
name: Remove test coverage files
244+
command: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
233245
- run:
234246
name: Run Linux binary -f (dry run)
235247
command: |
@@ -259,6 +271,9 @@ jobs:
259271
- run:
260272
name: Remove .git directory
261273
command: rm -rf .git
274+
- run:
275+
name: Remove test coverage files
276+
command: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
262277
- run:
263278
name: Run Linux binary (dry run)
264279
command: |
@@ -289,6 +304,9 @@ jobs:
289304
name: Confirm that aarch64 uploader binary is static
290305
command: |
291306
(file out/codecov-aarch64 | grep 'static') || exit ${?}
307+
- run:
308+
name: Remove test coverage files
309+
command: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
292310
- run:
293311
name: Run aarch64 binary -f (dry run)
294312
command: |
@@ -319,6 +337,9 @@ jobs:
319337
- run:
320338
name: Remove .git directory
321339
command: rm -rf .git
340+
- run:
341+
name: Remove test coverage files
342+
command: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
322343
- run:
323344
name: Run Linux binary (dry run)
324345
command: |
@@ -340,6 +361,9 @@ jobs:
340361
- checkout
341362
- attach_workspace:
342363
at: .
364+
- run:
365+
name: Remove test coverage files
366+
command: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
343367
- run:
344368
name: Run MacOS binary -f (dry-run)
345369
command: |
@@ -368,6 +392,9 @@ jobs:
368392
command: rm -rf .git
369393
- attach_workspace:
370394
at: .
395+
- run:
396+
name: Remove test coverage files
397+
command: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
371398
- run:
372399
name: Run MacOS binary (dry-run)
373400
command: |
@@ -415,6 +442,12 @@ jobs:
415442
- checkout
416443
- attach_workspace:
417444
at: .
445+
- run:
446+
name: Remove test coverage files
447+
command: |
448+
Remove-Item -Recurse -Force *.coverage.txt; echo "ok"
449+
Remove-Item -Recurse -Force coverage-report-test.json; echo "ok"
450+
Remove-Item -Recurse -Force test/fixtures; echo "ok"
418451
- run:
419452
name: Run Windows binary -f (dry-run)
420453
command: |
@@ -447,6 +480,12 @@ jobs:
447480
command: del -Recurse -Force .git
448481
- attach_workspace:
449482
at: .
483+
- run:
484+
name: Remove test coverage files
485+
command: |
486+
Remove-Item -Recurse -Force *.coverage.txt; echo "ok"
487+
Remove-Item -Recurse -Force coverage-report-test.json; echo "ok"
488+
Remove-Item -Recurse -Force test/fixtures; echo "ok"
450489
- run:
451490
name: Run Windows binary (dry-run)
452491
command: |

0 commit comments

Comments
 (0)