We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cb4c60 commit 48a9f53Copy full SHA for 48a9f53
.drone.yml
@@ -16,12 +16,22 @@ steps:
16
- task build
17
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
28
image: arduino/arduino-cli:drone-0.2.0
29
environment:
30
CODECOV_TOKEN:
31
from_secret: codecov_token
32
commands:
- - task test
- - task test-legacy
33
- codecov -cF unit -f coverage_unit.txt -t $CODECOV_TOKEN
- - 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