Skip to content

Commit

Permalink
Execute built binary as simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Jan 22, 2019
1 parent a903391 commit 58d5e41
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ local PipelineBuild(os="linux", arch="amd64") = {
event: [ "tag" ],
},
},
{
name: "executable",
image: "golang:1.11",
pull: "always",
commands: [
"./release/" + os + "/" + arch + "/drone-volume-cache --help",
],
},
{
name: "dryrun",
image: "plugins/docker:" + os + "-" + arch,
Expand Down
10 changes: 8 additions & 2 deletions .drone.windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ platform:
arch: amd64

steps:
- name: build
- name: build-push
pull: always
image: golang:1.11
commands:
Expand All @@ -20,7 +20,7 @@ steps:
- push
- pull_request

- name: build
- name: build-tag
pull: always
image: golang:1.11
commands:
Expand All @@ -32,6 +32,12 @@ steps:
event:
- tag

- name: executable
pull: always
image: golang:1.11
commands:
- ./release/windows/amd64/drone-volume-cache --help

- name: dryrun
pull: always
image: plugins/docker:windows-amd64
Expand Down
18 changes: 18 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ steps:
event:
- tag

- name: executable
pull: always
image: golang:1.11
commands:
- ./release/linux/amd64/drone-volume-cache --help

- name: dryrun
pull: always
image: plugins/docker:linux-amd64
Expand Down Expand Up @@ -135,6 +141,12 @@ steps:
event:
- tag

- name: executable
pull: always
image: golang:1.11
commands:
- ./release/linux/arm64/drone-volume-cache --help

- name: dryrun
pull: always
image: plugins/docker:linux-arm64
Expand Down Expand Up @@ -209,6 +221,12 @@ steps:
event:
- tag

- name: executable
pull: always
image: golang:1.11
commands:
- ./release/linux/arm/drone-volume-cache --help

- name: dryrun
pull: always
image: plugins/docker:linux-arm
Expand Down

0 comments on commit 58d5e41

Please sign in to comment.