Execute built binary as simple test
This commit is contained in:
parent
81a6499ee8
commit
b3ccd0b778
@ -72,6 +72,14 @@ local PipelineBuild(binary="docker", os="linux", arch="amd64") = {
|
|||||||
event: [ "tag" ],
|
event: [ "tag" ],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
if binary == "docker" then {
|
||||||
|
name: "executable",
|
||||||
|
image: "golang:1.11",
|
||||||
|
pull: "always",
|
||||||
|
commands: [
|
||||||
|
"./release/" + os + "/" + arch + "/drone-" + binary + " --help",
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "dryrun",
|
name: "dryrun",
|
||||||
image: "plugins/docker:" + os + "-" + arch,
|
image: "plugins/docker:" + os + "-" + arch,
|
||||||
|
@ -32,6 +32,12 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
- name: executable
|
||||||
|
pull: always
|
||||||
|
image: golang:1.11
|
||||||
|
commands:
|
||||||
|
- ./release/windows/amd64/drone-docker --help
|
||||||
|
|
||||||
- name: dryrun
|
- name: dryrun
|
||||||
pull: always
|
pull: always
|
||||||
image: plugins/docker:windows-amd64
|
image: plugins/docker:windows-amd64
|
||||||
|
18
.drone.yml
18
.drone.yml
@ -61,6 +61,12 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
- name: executable
|
||||||
|
pull: always
|
||||||
|
image: golang:1.11
|
||||||
|
commands:
|
||||||
|
- ./release/linux/amd64/drone-docker --help
|
||||||
|
|
||||||
- name: dryrun
|
- name: dryrun
|
||||||
pull: always
|
pull: always
|
||||||
image: plugins/docker:linux-amd64
|
image: plugins/docker:linux-amd64
|
||||||
@ -135,6 +141,12 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
- name: executable
|
||||||
|
pull: always
|
||||||
|
image: golang:1.11
|
||||||
|
commands:
|
||||||
|
- ./release/linux/arm64/drone-docker --help
|
||||||
|
|
||||||
- name: dryrun
|
- name: dryrun
|
||||||
pull: always
|
pull: always
|
||||||
image: plugins/docker:linux-arm64
|
image: plugins/docker:linux-arm64
|
||||||
@ -209,6 +221,12 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
- name: executable
|
||||||
|
pull: always
|
||||||
|
image: golang:1.11
|
||||||
|
commands:
|
||||||
|
- ./release/linux/arm/drone-docker --help
|
||||||
|
|
||||||
- name: dryrun
|
- name: dryrun
|
||||||
pull: always
|
pull: always
|
||||||
image: plugins/docker:linux-arm
|
image: plugins/docker:linux-arm
|
||||||
|
Loading…
Reference in New Issue
Block a user