1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-16 01:06:27 +00:00
prometheus-operator/.travis.yml
2018-06-05 13:34:13 +02:00

35 lines
1,020 B
YAML

sudo: required
language: go
go:
- "1.10"
services:
- docker
before_install:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
jobs:
include:
# Check generated contents are up to date and code is formatted.
- stage: Sanity check and unit tests
script: ./scripts/check-make-generate.sh
- script: cd contrib/kube-prometheus && make test
# Build Prometheus config reloader
- script: cd contrib/prometheus-config-reloader && make build
# 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
# E2e tests
script: ./scripts/travis-e2e.sh
- script: ./scripts/travis-e2e-helm.sh
- stage: deploy
script: skip
deploy:
provider: script
script: make helm-sync-s3
on:
branch: master
- stage: push-docker-image
script: ./scripts/travis-push-docker-image.sh