From 9bd0bbda1ce6c661f1b84ba656db5164a6ffb78f Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Wed, 17 Mar 2021 12:09:09 +0000 Subject: [PATCH] Initial Bitbucket Pipelines configuration --- bitbucket-pipelines.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bitbucket-pipelines.yml diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml new file mode 100644 index 0000000..960290d --- /dev/null +++ b/bitbucket-pipelines.yml @@ -0,0 +1,25 @@ +# 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 + - mkdir build + - go mod vendor + - go mod tidy + - go build -o build/gostations github.com/gmgauthier/gostations + - step: + name: Lint code + image: golangci/golangci-lint:v1.31.0 + script: + - golangci-lint run -v