File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 8
8
commands :
9
9
# Check if the Go code is properly formatted and run the linter
10
10
- task check
11
- # Ensure protobufs compile
11
+ # Ensure protobufs compile without errors
12
12
- task protoc
13
13
14
14
- name : build
@@ -28,10 +28,10 @@ steps:
28
28
- pip install -r test/requirements.txt
29
29
- task test-integration
30
30
31
- # Contrary to other CI platforms, uploading reports to Codecov requires Drone to provide a token.
32
- # To avoid exposing the Codecov token to external PRs, we only upload coverage when we merge on
33
- # `master`.
34
31
- name : coverage
32
+ # Contrary to other CI platforms, uploading reports to Codecov requires Drone to provide a token.
33
+ # To avoid exposing the Codecov token to external PRs, we only upload coverage when we merge on
34
+ # `master`.
35
35
image : arduino/arduino-cli:drone-1.0
36
36
environment :
37
37
CODECOV_TOKEN :
@@ -51,6 +51,7 @@ name: release
51
51
52
52
steps :
53
53
- name : fetch
54
+ # extra step needed to fetch tags after cloning
54
55
image : docker:git
55
56
commands :
56
57
- git fetch --tags
@@ -65,9 +66,16 @@ steps:
65
66
66
67
trigger :
67
68
event :
69
+ # releases are triggered by tags only
68
70
- tag
69
71
status :
72
+ # skip the release if the previous build failed
70
73
- success
74
+ ref :
75
+ exclude :
76
+ # exclude the tags used to build Docker images for drone
77
+ - refs/tags/builder-*
78
+ - refs/tags/drone-*
71
79
72
80
depends_on :
73
81
- test
You can’t perform that action at this time.
0 commit comments