forked from kubernetes/kube-state-metrics
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
47 lines (41 loc) · 1.04 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
39
40
41
42
43
44
45
46
47
sudo: required
dist: xenial
language: go
go:
- "1.13.x"
services:
- docker
git:
# Benchmark tests needs to access other branches, thereby we need to fetch all
# of the repository.
depth: false
env:
global:
- E2E_SETUP_MINIKUBE=yes
- E2E_SETUP_KUBECTL=yes
- E2E_SETUP_PROMTOOL=yes
- MINIKUBE_DRIVER=none
- SUDO=sudo
install:
- mkdir -p $HOME/gopath/src/k8s.io
- mv $TRAVIS_BUILD_DIR $HOME/gopath/src/k8s.io/kube-state-metrics
- cd $HOME/gopath/src/k8s.io/kube-state-metrics
jobs:
include:
- stage: all
name: Lint
script: make lint
- name: Validate generated manifests
script: make validate-manifests
- name: Validate vendor is in sync with go modules
script: make validate-modules
- name: Check that all metrics are documented
script: make doccheck
- name: Unit tests
script: make test-unit
- name: Benchmark tests
script: make test-benchmark-compare
- name: Build
script: make build
- name: End to end tests
script: make e2e