forked from nats-io/prometheus-nats-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (32 loc) · 945 Bytes
/
.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
32
33
34
language: go
go:
- 1.14.x
- 1.13.x
install:
- go get -v github.com/nats-io/nats.go
- go get -v github.com/nats-io/nats-server
- go get -v github.com/nats-io/nats-replicator
- go get -v github.com/mattn/goveralls
- go get -v github.com/wadey/gocovmerge
- go get -v github.com/alecthomas/gometalinter
# - gometalinter --install
before_script:
- EXCLUDE_VENDOR=$(go list ./... | grep -v "/vendor/")
- test -z "$(gofmt -l . | grep -v "vendor/")"
- go build -v
- go install -v
- go vet $EXCLUDE_VENDOR
# - travis_wait 20 gometalinter ./... --vendor --disable=gocyclo --fast --deadline 20m
script:
- go test -v -i -race $EXCLUDE_VENDOR -p 1
- go test -v -race $EXCLUDE_VENDOR -p 1
after_success:
- if [[ "$TRAVIS_GO_VERSION" == 1.14.* ]]; then ./scripts/cov.sh TRAVIS; fi
# calls goreleaser
deploy:
- provider: script
skip_cleanup: true
script: curl -sL http://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux