25 lines
668 B
YAML
25 lines
668 B
YAML
language: go
|
|
|
|
services:
|
|
- mongodb
|
|
|
|
go:
|
|
- "1.13.x"
|
|
|
|
install: true
|
|
|
|
before_install:
|
|
- export TZ=America/Chicago
|
|
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.19.1
|
|
- golangci-lint --version
|
|
- go get github.com/mattn/goveralls
|
|
- export MONGO_TEST=mongodb://127.0.0.1:27017
|
|
- export PATH=$(pwd)/bin:$PATH
|
|
|
|
script:
|
|
- go get ./...
|
|
- go mod vendor
|
|
- go test -v -mod=vendor -covermode=count -coverprofile=profile.cov ./... || travis_terminate 1;
|
|
- golangci-lint run --tests=false || travis_terminate 1;
|
|
- $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci
|