Update wercker.

This commit is contained in:
xeodou 2015-04-06 23:35:03 +08:00
parent db2c18e41e
commit 93ac07754f
1 changed files with 15 additions and 6 deletions

View File

@ -4,12 +4,21 @@ box: wercker/golang
build:
# The steps that will be executed on build
steps:
# A step that executes `go lint command
- go lint
# A step that executes `go get ./...` command
- go get ./...
# A step that executes `go test ./...` command
- go test
# Get the project
- script:
name: go get
code: |
go get ./...
# Lint the project
- script:
name: go lint
code: |
go lint
# Test the project
- script:
name: go test
code: |
go test
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed