forked from looplab/eventhorizon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
36 lines (31 loc) · 904 Bytes
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
box: wercker/golang
services:
- wercker/mongodb
- wercker/redis
build:
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: |
cd $WERCKER_SOURCE_DIR
go version
go get -tags 'mongo redis' -t ./...
# Build the project
- script:
name: go build
code: |
go build -tags 'mongo redis' ./...
# Test the project
- script:
name: go test
code: |
go get -d golang.org/x/tools/cmd/cover
go get github.com/axw/gocov/gocov
go get github.com/mattn/goveralls
git checkout master
gocov test -tags 'mongo redis' > gocov.json
goveralls -gocovdata=gocov.json -service wercker.com -repotoken $COVERALLS_TOKEN