Skip to content

Commit

Permalink
wercker: add
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 12, 2016
1 parent 1391a69 commit f4d2655
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions wercker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
box: golang

# services:
# - postgres
# http://devcenter.wercker.com/docs/services/postgresql.html

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

build:
# 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

# Gets the dependencies
- script:
name: go get
code: |
go get
go get github.com/golang/lint/golint
# Build the project
- script:
name: go build
code: |
go build ./...
- script:
name: golint
code: |
VIOLATIONS=$(golint ./...)
echo $VIOLATIONS
test $(echo $VIOLATIONS | wc -l) -eq 10
# Test the project
- script:
name: go test
code: |
go test ./...

0 comments on commit f4d2655

Please sign in to comment.