0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-28 09:20:36 +00:00

Execute built binary as simple test

This commit is contained in:
Thomas Boerger 2019-01-22 23:11:11 +01:00
parent 942d158c0e
commit 502e6ceee0
No known key found for this signature in database
GPG Key ID: 09745AFF9D63C79B
3 changed files with 34 additions and 2 deletions

View File

@ -72,6 +72,14 @@ local PipelineBuild(os="linux", arch="amd64") = {
event: [ "tag" ], event: [ "tag" ],
}, },
}, },
{
name: "executable",
image: "golang:1.11",
pull: "always",
commands: [
"./release/" + os + "/" + arch + "/drone-s3-sync --help",
],
},
{ {
name: "dryrun", name: "dryrun",
image: "plugins/docker:" + os + "-" + arch, image: "plugins/docker:" + os + "-" + arch,

View File

@ -7,7 +7,7 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: build - name: build-push
pull: always pull: always
image: golang:1.11 image: golang:1.11
commands: commands:
@ -20,7 +20,7 @@ steps:
- push - push
- pull_request - pull_request
- name: build - name: build-tag
pull: always pull: always
image: golang:1.11 image: golang:1.11
commands: commands:
@ -32,6 +32,12 @@ steps:
event: event:
- tag - tag
- name: executable
pull: always
image: golang:1.11
commands:
- ./release/windows/amd64/drone-s3-sync --help
- name: dryrun - name: dryrun
pull: always pull: always
image: plugins/docker:windows-amd64 image: plugins/docker:windows-amd64

View File

@ -61,6 +61,12 @@ steps:
event: event:
- tag - tag
- name: executable
pull: always
image: golang:1.11
commands:
- ./release/linux/amd64/drone-s3-sync --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-s3-sync --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-s3-sync --help
- name: dryrun - name: dryrun
pull: always pull: always
image: plugins/docker:linux-arm image: plugins/docker:linux-arm