Add a working Travis pipeline

This commit is contained in:
Matthias Loibl
2019-04-15 12:14:15 +02:00
parent c74e6a93aa
commit 3c109369d4
13 changed files with 167 additions and 25 deletions

21
.travis.yml Normal file
View File

@@ -0,0 +1,21 @@
sudo: required
dist: xenial
language: go
go:
- "1.12.x"
go_import_path: github.com/coreos/kube-prometheus
cache:
directories:
- $GOCACHE
- $GOPATH/pkg/mod
services:
- docker
jobs:
include:
- script: make --always-make generate-in-docker && git diff --exit-code
- script: make --always-make test-in-docker
- script: GO111MODULE=on ./tests/e2e/travis-e2e.sh