Skip to content

Commit 48a9f53

Browse files
committed
coverage only on master
1 parent 9cb4c60 commit 48a9f53

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Diff for: .drone.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,22 @@ steps:
1616
- task build
1717

1818
- 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
1928
image: arduino/arduino-cli:drone-0.2.0
2029
environment:
2130
CODECOV_TOKEN:
2231
from_secret: codecov_token
2332
commands:
24-
- task test
25-
- task test-legacy
2633
- 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

0 commit comments

Comments
 (0)