-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
31 lines (24 loc) · 2.18 KB
/
.travis.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
language: go
go:
- "1.10.x"
install:
# Glide (v0.12.3)
- go get -v github.com/Masterminds/glide
- cd "$(go env GOPATH | awk 'BEGIN{FS=":"} { print $1 }')/src/github.com/Masterminds/glide" && git checkout 84607742b10f492430762d038e954236bbaf23f7 && go install && cd -
# project dependencies
- glide install
# code coverage
- go get golang.org/x/tools/cmd/cover
- if [ "${TRAVIS_SECURE_ENV_VARS}" == "true" ]; then go get github.com/mattn/goveralls; fi
script:
# code coverage
- go test -v -covermode=count -coverprofile=coverage.out
- if [ "${TRAVIS_SECURE_ENV_VARS}" == "true" ]; then $(go env GOPATH | awk 'BEGIN{FS=":"} { print $1 }')/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi
env:
# Coveralls
secure: "ZBOW+e7EC0BWoSg86QdtXa4+XOZyOnXx+OMcYfN/pStp6xMOQ3y1w7KlL2zGK/k7J9T+GRmzHGHT1NpKBpFyyxJSClNhoDGHXYAYwD5VEFTAQsUE9mzxOPeMq8SKVcDVWyscQ1Gj57Jm0VOXzJRnRTXUwYK0BlP4HF+9s3ycEVcuqxycdPWetzFTckUdwlughItYkio0EVgSZvx9vhHyKEnHIvJs4nRtcZJbhEgKPlEZ46qxXfDMeIQTl1BFjLvqXyZm/12B6eaDWYMhLZlTHG6vm+yPD+rWtawlnToNtjsW7lvB+NyylLVh1OH9+G/mbbniDkASy/BqvjO7d/oY1Wua5n3ddFcKyknsQy/CsOMu3wc0CifrTs2hh0wQ4+VgAc93045w5ictWam5cvGMDW6eJ83UF9wPr2a3suyIit94NWd3ryzgnLjVA1ReOu5lDl+F93NIZlSFL1vXJuf+NcBwxoPpBF1NlHgszs0KZI37U9wcGeLS6TABeECgpHxPj0zNgANLZt7r7aujTKxZd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