-
Notifications
You must be signed in to change notification settings - Fork 35
/
wercker.yml
28 lines (27 loc) · 799 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
box: golang
build:
steps:
- script:
name: make buid
code: |
make build
- script:
name: make test
code: |
make test
- script:
name: goveralls
code: |
# Check that the token is set
if [ -z "${WERCKER_SCRIPT_TOKEN}" ]; then
fail "Please set your Coveralls token."
fi
# Setup the git branch variable globally
export GIT_BRANCH=$WERCKER_GIT_BRANCH
# Get the tools of the trade
go get github.com/axw/gocov/gocov
go get github.com/mattn/goveralls
# Export the coverage
go test --covermode=count -coverprofile=profile.cov .
goveralls -coverprofile=profile.cov -service=wercker.com -repotoken $WERCKER_SCRIPT_TOKEN
token: $COVERALLS_TOKEN