From a1f3005c9e71ba4d55bc86c98638fb4d29b2cabe Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Thu, 11 Mar 2021 17:36:04 +0000 Subject: [PATCH] Initial Bitbucket Pipelines configuration --- bitbucket-pipelines.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 bitbucket-pipelines.yml diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml new file mode 100644 index 0000000..6f9ace4 --- /dev/null +++ b/bitbucket-pipelines.yml @@ -0,0 +1,23 @@ +# Template Go (Golang) build + +# This template allows you to validate your Go (Golang) code. +# The workflow allows running tests, build and code linting on the default branch. + +image: golang:1.15 + +pipelines: + default: + - parallel: + - step: + name: Test and Build + script: + - mkdir test-reports + - go get -u github.com/jstemmer/go-junit-report + - go test tests/* -v 2>&1 | go-junit-report > test-reports/report.xml + # Build compiles the packages + - go build -o ./build/ ./* + - step: + name: Lint code + image: golangci/golangci-lint:v1.31.0 + script: + - golangci-lint run -v