forked from gluster/gluster-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (37 loc) · 894 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
35
36
37
38
39
40
41
42
43
---
sudo: true
addons:
apt:
packages:
- python
- realpath
- ruby
language: go
env:
global:
- GOLANGCI_VERSION="v1.18.0"
go:
# Kubernetes minimum_go_version can be found in this file:
# https://github.com/kubernetes/kubernetes/blob/master/hack/lib/golang.sh
- stable
install:
- gem install asciidoctor mdl
- pip install --user --upgrade pip
- pip install --user yamllint
# install dep
- >
curl -L
https://raw.githubusercontent.com/golang/dep/master/install.sh
| sh
# install golangci-lint
- >
curl -sf
"https://install.goreleaser.com/github.com/golangci/golangci-lint.sh"
| bash -s -- -b $GOPATH/bin "${GOLANGCI_VERSION}"
script:
# Lint text-like files
- scripts/pre-commit.sh --require-all
# Fetch vendor dependencies so linters succeed
- make vendor-install
# Lint golang sources
- scripts/go-lint.sh