fix pipeline: attempt 3

This commit is contained in:
Greg Gauthier 2021-03-12 10:11:09 +00:00
parent 41839e0186
commit 5ab546bdd7

View File

@ -8,17 +8,18 @@ image: golang:1.15
pipelines: pipelines:
default: default:
- parallel: - parallel:
- step:
name: Lint code
image: golangci/golangci-lint:v1.31.0
script:
- golangci-lint run -v
- step: - step:
name: Test and Build name: Test and Build
script: script:
- mkdir test-reports # - mkdir test-reports
- go get -u github.com/jstemmer/go-junit-report # - go get -u github.com/jstemmer/go-junit-report
- go test tests/* -v 2>&1 | go-junit-report > test-reports/report.xml # - go test tests/* -v 2>&1 | go-junit-report > test-reports/report.xml
# Build compiles the packages # Build compiles the packages
- mkdir ./build - mkdir ./build
- go build -o ./build/ ./projector.go - go mod tidy
- step: - go build -a -o ./build/ .
name: Lint code
image: golangci/golangci-lint:v1.31.0
script:
- golangci-lint run -v