From 7e171325ed0c60ddc57d7ba06d5eea2042afbbb8 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Tue, 22 Jan 2019 23:11:45 +0100 Subject: [PATCH] Execute built binary as simple test --- .drone.jsonnet | 8 ++++++++ .drone.windows.yml | 10 ++++++++-- .drone.yml | 18 ++++++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 5b67fa3..debc762 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -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-ansible --help", + ], + }, { name: "dryrun", image: "plugins/docker:" + os + "-" + arch, diff --git a/.drone.windows.yml b/.drone.windows.yml index 8ef4e56..c5d7c12 100644 --- a/.drone.windows.yml +++ b/.drone.windows.yml @@ -7,7 +7,7 @@ platform: arch: amd64 steps: -- name: build +- name: build-push pull: always image: golang:1.11 commands: @@ -20,7 +20,7 @@ steps: - push - pull_request -- name: build +- name: build-tag pull: always image: golang:1.11 commands: @@ -32,6 +32,12 @@ steps: event: - tag +- name: executable + pull: always + image: golang:1.11 + commands: + - ./release/windows/amd64/drone-ansible --help + - name: dryrun pull: always image: plugins/docker:windows-amd64 diff --git a/.drone.yml b/.drone.yml index 573cfae..95e4b9c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -61,6 +61,12 @@ steps: event: - tag +- name: executable + pull: always + image: golang:1.11 + commands: + - ./release/linux/amd64/drone-ansible --help + - name: dryrun pull: always image: plugins/docker:linux-amd64 @@ -135,6 +141,12 @@ steps: event: - tag +- name: executable + pull: always + image: golang:1.11 + commands: + - ./release/linux/arm64/drone-ansible --help + - name: dryrun pull: always image: plugins/docker:linux-arm64 @@ -209,6 +221,12 @@ steps: event: - tag +- name: executable + pull: always + image: golang:1.11 + commands: + - ./release/linux/arm/drone-ansible --help + - name: dryrun pull: always image: plugins/docker:linux-arm