-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.travis.yml
More file actions
38 lines (32 loc) · 820 Bytes
/
.travis.yml
File metadata and controls
38 lines (32 loc) · 820 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
28
29
30
31
32
33
34
35
36
37
38
language: go
notifications:
email:
on_success: never
on_failure: change
cache:
directories:
- $GOPATH/pkg/mod
jobs:
fast_finish: true
include:
- go: 1.15.x
env: STABLE=true
- go: 1.x
- go: tip
allow_failures:
- go: tip
before_install:
# Install linters
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin ${GOLANGCI_LINT_VERSION}
- golangci-lint --version
- curl -sfL https://raw.githubusercontent.com/traefik/yaegi/master/install.sh | bash -s -- -b $GOPATH/bin ${YAEGI_VERSION}
install:
- go mod tidy
- git diff --exit-code go.mod
# - git diff --exit-code go.sum
- go mod download
- go mod vendor
# - git diff --exit-code ./vendor/
- make fmt
- git diff --exit-code
script: make lint test