forked from gluster/gluster-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (37 loc) · 943 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:
- GO_METALINTER_VERSION="v2.0.11"
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 gometalinter
- >
curl -L
'https://raw.githubusercontent.com/alecthomas/gometalinter/master/scripts/install.sh'
| bash -s -- -b ${TRAVIS_HOME}/gopath/bin "${GO_METALINTER_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/gometalinter-tests.sh