File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,22 @@ steps:
16
16
- task build
17
17
18
18
- name : test
19
+ image : arduino/arduino-cli:drone-0.2.0
20
+ commands :
21
+ - task test
22
+ - task test-legacy
23
+
24
+ # Contrary to other CI platforms, uploading reports to Codecov requires Drone to provide a token.
25
+ # To avoid exposing the Codecov token to external PRs, we only upload coverage when we merge on
26
+ # `master`.
27
+ - name : coverage
19
28
image : arduino/arduino-cli:drone-0.2.0
20
29
environment :
21
30
CODECOV_TOKEN :
22
31
from_secret : codecov_token
23
32
commands :
24
- - task test
25
- - task test-legacy
26
33
- codecov -cF unit -f coverage_unit.txt -t $CODECOV_TOKEN
27
- - codecov -cF integ -f coverage_integ.txt -t $CODECOV_TOKEN
34
+ - codecov -cF integ -f coverage_integ.txt -t $CODECOV_TOKEN
35
+ when :
36
+ branch :
37
+ - master
You can’t perform that action at this time.
0 commit comments