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: build:
# The steps that will be executed on build # The steps that will be executed on build
steps: steps:
# A step that executes `go lint command # Get the project
- go lint - script:
# A step that executes `go get ./...` command name: go get
- go get ./... code: |
# A step that executes `go test ./...` command go get ./...
- go test # 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 # A custom script step, name value is used in the UI
# and the code value contains the command that get executed # and the code value contains the command that get executed