forked from prometheus-operator/prometheus-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (32 loc) · 952 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
sudo: required
dist: xenial
language: go
go:
- "1.11.x"
cache:
directories:
- $GOCACHE
- $GOPATH/pkg/mod
services:
- docker
before_install:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
jobs:
include:
- stage: Sanity check and tests
# Check generated contents are up to date and code is formatted.
script: make --always-make format generate-in-docker && git diff --exit-code
- script: cd contrib/kube-prometheus && make test-in-docker
# Build Prometheus Operator rule config map to rule file crds cli tool
- script: cd cmd/po-rule-migration && go install
# Ensure vendor folder matches vendor.json
- script: ./scripts/golang-dep-ensure.sh
# Unit tests
- script: make test-unit
# E2e tests
- script: ./scripts/travis-e2e.sh
# kube-prometheus e2e tests
- script: ./contrib/kube-prometheus/tests/e2e/travis-e2e.sh
- stage: push-docker-image
script: ./scripts/travis-push-docker-image.sh