forked from TritonDataCenter/gosdc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1391a69
commit f4d2655
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ./... |