From e67d973c2f9e9a2f131f5ce2715108371e0ef916 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Thu, 18 Mar 2021 07:52:33 +0000 Subject: [PATCH] clean up test and build step. makes more sense now. --- bitbucket-pipelines.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 8e415b5..69abeb9 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -1,8 +1,3 @@ -# 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: @@ -11,12 +6,10 @@ pipelines: - step: name: Test and Build script: - - mkdir test-reports - - go get -u github.com/jstemmer/go-junit-report - - go test -v 2>&1 | go-junit-report > test-reports/report.xml - - mkdir build - go mod vendor - go mod tidy + - go test -v + - mkdir build - go build -o build/gostations github.com/gmgauthier/gostations - step: name: Lint code