24 lines
522 B
YAML
24 lines
522 B
YAML
box: wercker/golang
|
|
|
|
# Build definition
|
|
build:
|
|
# The steps that will be executed on build
|
|
steps:
|
|
# 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"
|