1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-15 16:56:24 +00:00
prometheus-operator/.travis.yml
Max Leonard Inden 19f3150e8a
*: Refactor build system
- Move prometheus-config-reloader to cmd/
- Refactor Makefile & contrib/kube-prometheus/Makefile
- Only execute a target if its dependencies changed
  - Create empty target file for docker builds
- Replace promu with plain static `go build`
2018-06-12 13:56:57 +02:00

40 lines
958 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:
- stage: Sanity check and tests
# Check generated contents are up to date and code is formatted.
script: 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
- 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