Merge branch 'master' of bitbucket.org:gmgauthier_ecs/gostations
This commit is contained in:
commit
d2c1b6af28
25
bitbucket-pipelines.yml
Normal file
25
bitbucket-pipelines.yml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user