Initial Bitbucket Pipelines configuration

This commit is contained in:
Greg Gauthier 2021-03-11 17:36:04 +00:00
parent 9a70cac7f2
commit a1f3005c9e
1 changed files with 23 additions and 0 deletions

23
bitbucket-pipelines.yml Normal file
View File

@ -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