From f53dfcbf6282edf6b8a442cd9e3a5f0a84640f9a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 5 May 2019 11:31:32 +0200 Subject: [PATCH] ci: create jenkins file --- build/Jenkinsfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 build/Jenkinsfile diff --git a/build/Jenkinsfile b/build/Jenkinsfile new file mode 100644 index 0000000..86e074b --- /dev/null +++ b/build/Jenkinsfile @@ -0,0 +1,21 @@ +pipeline{ + agent { + docker { + image 'golang:alpine' + } + } + stages { + stage('Test'){ + environment { + GO111MODULE = 'on' + GOCACHE = '/tmp/.cache' + CGO_ENABLED = 0 + } + steps { + sh 'go version' + sh 'go get -v ./...' + sh 'go test -cover -parallel 10 -v ./... -coverprofile=coverage.out' + } + } + } +} \ No newline at end of file