-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.travis.yml
More file actions
27 lines (27 loc) · 873 Bytes
/
.travis.yml
File metadata and controls
27 lines (27 loc) · 873 Bytes
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
language: go
go:
- "1.13"
sudo: false
notifications:
email: false
matrix:
include:
- name: osx
env: GORELEASER_FILE=./.goreleaser_darwin.yaml
- name: linux
env: GORELEASER_FILE=./.goreleaser_linux.yaml
before_install:
- npm install -g codeclimate-test-reporter
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.18.0
install:
- go mod tidy
script:
- golangci-lint run
- go build -race -gcflags "-N -l" ./vlpersistence
- go build -race -gcflags "-N -l" ./vlauth
- go build -race -gcflags "-N -l" ./vlsubscriber
- go build -race -gcflags "-N -l" ./mqttp
- go test -race -coverprofile=coverage.txt -covermode=atomic -v $(go list ./... | grep -v /vendor/)
after_success:
- bash <(curl -s https://codecov.io/bash)
- codeclimate-test-reporter < coverage.txt