-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
38 lines (33 loc) · 1.12 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
32
33
34
35
36
37
38
language: go
go:
- 1.13.x
services:
- docker
env:
global:
- GO111MODULE=on
before_install:
- GO111MODULE=off go get github.com/mattn/goveralls
# - go get -u github.com/reviewdog/reviewdog/cmd/reviewdog
- GO111MODULE=off go get -u golang.org/x/lint/golint
# Lock linter version to env: $GOLANGCI_LINT_VERSION
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION-v1.17.1}
- $GOPATH/bin/golangci-lint --version
script:
- $GOPATH/bin/golangci-lint run --verbose
- go test -v ./...
# - $GOPATH/bin/golangci-lint run | reviewdog -f=golangci-lint -reporter=github-pr-review
# - $GOPATH/bin/golint ./... | reviewdog -f=golint -reporter=github-pr-review
#- $GOPATH/bin/goveralls -service=travis-ci
after_success:
# Required for docker push
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USER" -p="$DOCKER_PASSWORD"
deploy:
# Goreleaser deployment
- provider: script
skip_cleanup: true
script:
- curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux