Skip to content

Commit

Permalink
only build if we're going to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
maplebed committed Jun 6, 2019
1 parent 9cf5e42 commit 98774b4
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- buildevents/start_trace

build:
test:
executor: linuxgo
steps:
- buildevents/with_job_span:
Expand All @@ -28,6 +28,13 @@ jobs:
- buildevents/berun:
bename: go_test
becommand: go test -v ./...

build:
executor: linuxgo
steps:
- buildevents/with_job_span:
steps:
- checkout
- buildevents/berun:
bename: go_build
becommand: go install -ldflags "-X main.Version=${CIRCLE_TAG:1:20}" ./...
Expand Down Expand Up @@ -79,12 +86,20 @@ workflows:
filters:
tags:
only: /.*/
- build:
- test:
requires:
- setup
filters:
tags:
only: /.*/
- build:
requires:
- test
filters:
tags:
only: /^v\d+\.\d+\.\d+/
branches:
ignore: /.*/
- publish:
requires:
- build
Expand Down

0 comments on commit 98774b4

Please sign in to comment.