29 lines
618 B
YAML
29 lines
618 B
YAML
box: wercker/golang
|
|
|
|
# Build definition
|
|
build:
|
|
# The steps that will be executed on build
|
|
steps:
|
|
# 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
|
|
- script:
|
|
name: echo golang information
|
|
code: |
|
|
echo "go version $(go -v) running"
|