Skip to content

Commit e8e2287

Browse files
committed
Execute built binary as simple test
1 parent 0edc819 commit e8e2287

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

.drone.jsonnet

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ local PipelineBuild(os="linux", arch="amd64") = {
7272
event: [ "tag" ],
7373
},
7474
},
75+
{
76+
name: "executable",
77+
image: "golang:1.11",
78+
pull: "always",
79+
commands: [
80+
"./release/" + os + "/" + arch + "/drone-matrix --help",
81+
],
82+
},
7583
{
7684
name: "dryrun",
7785
image: "plugins/docker:" + os + "-" + arch,

.drone.windows.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ platform:
77
arch: amd64
88

99
steps:
10-
- name: build
10+
- name: build-push
1111
pull: always
1212
image: golang:1.11
1313
commands:
@@ -20,7 +20,7 @@ steps:
2020
- push
2121
- pull_request
2222

23-
- name: build
23+
- name: build-tag
2424
pull: always
2525
image: golang:1.11
2626
commands:
@@ -32,6 +32,12 @@ steps:
3232
event:
3333
- tag
3434

35+
- name: executable
36+
pull: always
37+
image: golang:1.11
38+
commands:
39+
- ./release/windows/amd64/drone-matrix --help
40+
3541
- name: dryrun
3642
pull: always
3743
image: plugins/docker:windows-amd64

.drone.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ steps:
6161
event:
6262
- tag
6363

64+
- name: executable
65+
pull: always
66+
image: golang:1.11
67+
commands:
68+
- ./release/linux/amd64/drone-matrix --help
69+
6470
- name: dryrun
6571
pull: always
6672
image: plugins/docker:linux-amd64
@@ -135,6 +141,12 @@ steps:
135141
event:
136142
- tag
137143

144+
- name: executable
145+
pull: always
146+
image: golang:1.11
147+
commands:
148+
- ./release/linux/arm64/drone-matrix --help
149+
138150
- name: dryrun
139151
pull: always
140152
image: plugins/docker:linux-arm64
@@ -209,6 +221,12 @@ steps:
209221
event:
210222
- tag
211223

224+
- name: executable
225+
pull: always
226+
image: golang:1.11
227+
commands:
228+
- ./release/linux/arm/drone-matrix --help
229+
212230
- name: dryrun
213231
pull: always
214232
image: plugins/docker:linux-arm

0 commit comments

Comments
 (0)