From 4555203b91743e687fe6e9aceb5cf24fb8604f11 Mon Sep 17 00:00:00 2001 From: Andreas Burger Date: Mon, 10 Aug 2020 08:05:34 +0000 Subject: [PATCH] Update CI-Pipeline Add verify to pipeline-definition --- .ci/pipeline_definitions | 6 ++++++ .ci/verify | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 .ci/verify diff --git a/.ci/pipeline_definitions b/.ci/pipeline_definitions index 7142b28..05f3dd2 100644 --- a/.ci/pipeline_definitions +++ b/.ci/pipeline_definitions @@ -41,9 +41,15 @@ machine-controller-manager-provider-kubevirt: image: 'golang:1.13.3' jobs: head-update: + steps: + verify: + image: 'golang:1.14.4' traits: draft_release: ~ pull-request: + steps: + verify: + image: 'golang:1.14.4' traits: pull-request: ~ release: diff --git a/.ci/verify b/.ci/verify new file mode 100755 index 0000000..12a4e61 --- /dev/null +++ b/.ci/verify @@ -0,0 +1,19 @@ +#!/bin/bash + +set -o errexit +set -o nounset +set -o pipefail + +cd "$(dirname $0)/.." + +git config --global user.email "gardener@sap.com" +git config --global user.name "Gardener CI/CD" + +apt-get update +apt-get install -y unzip + +mkdir -p /go/src/github.com/gardener/machine-controller-manager-provider-kubevirt +cp -r . /go/src/github.com/gardener/machine-controller-manager-provider-kubevirt +cd /go/src/github.com/gardener/machine-controller-manager-provider-kubevirt + +make verify