Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Split build
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Oct 12, 2017
1 parent fa969a1 commit 0720bc4
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,21 @@ box: golang

# - mongo
# http://devcenter.wercker.com/docs/services/mongodb.html

default: &default
after-steps:
# https://github.com/wercker/step-slack
- slack-notifier:
url: $SLACK_WEBHOOK_URL
channel: $SLACK_CHANNEL
username: wercker_build

build:
steps:

build-test:
<<: *default

# The steps that will be executed on build
# Steps make up the actions in your pipeline
# Read more about steps on our dev center:
Expand All @@ -35,6 +49,18 @@ build:
- tcnksm/goveralls:
token: $COVERALLS_TOKEN

build-lint:
<<: *default

# The steps that will be executed on build
# Steps make up the actions in your pipeline
# Read more about steps on our dev center:
# http://devcenter.wercker.com/docs/steps/index.html
steps:
# Sets the go workspace and places you package
# at the right place in the workspace tree
- setup-go-workspace

- script:
name: go vet
code: |
Expand All @@ -45,10 +71,3 @@ build:
code: |
go get -u github.com/golang/lint/golint
golint -set_exit_status
after-steps:
# https://github.com/wercker/step-slack
- slack-notifier:
url: $SLACK_WEBHOOK_URL
channel: $SLACK_CHANNEL
username: wercker_build

0 comments on commit 0720bc4

Please sign in to comment.