forked from istio/old_auth_repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (37 loc) · 931 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
44
45
46
47
48
49
language: go
sudo: required
dist: trusty
go_import_path: istio.io/auth
go:
- 1.7.x
jdk:
- oraclejdk8
env:
global:
- BAZEL_VERSION=0.4.4
addons:
apt:
packages:
- wget
cache:
directories:
- $HOME/bazel/install
before_install:
- mkdir -p ${HOME}/bazel/install
- cd ${HOME}/bazel/install
- wget --no-clobber "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb"
- chmod +x bazel_${BAZEL_VERSION}-linux-x86_64.deb
- sudo dpkg -i bazel_${BAZEL_VERSION}-linux-x86_64.deb
- sudo apt-get -f install -qqy
- cd ${TRAVIS_BUILD_DIR}
install:
# Install GoMetaLinter and known linters.
- go get github.com/alecthomas/gometalinter
- gometalinter --install --vendored-linters
script:
- bazel test //...
- bin/setup.sh # This must be run before linters and coverages.
- bin/linters.sh
- bin/coverage.sh
after_success:
- bash <(curl -s https://codecov.io/bash)