mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
Setting `branch: master` causes tag builds to be skipped, so we have to explicitly also build on tags.
34 lines
600 B
YAML
34 lines
600 B
YAML
language: go
|
|
|
|
go:
|
|
- '1.10'
|
|
|
|
# blech, Travis downloads with capitals in DirectXMan12, which confuses go
|
|
go_import_path: github.com/directxman12/k8s-prometheus-adapter
|
|
|
|
before_install:
|
|
- curl -L -s https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -o $GOPATH/bin/dep
|
|
- chmod +x $GOPATH/bin/dep
|
|
|
|
install:
|
|
- make -B vendor
|
|
|
|
script: make verify
|
|
|
|
cache:
|
|
directories:
|
|
- ~/gopath/pkg/dep/
|
|
|
|
sudo: required
|
|
services:
|
|
- docker
|
|
|
|
deploy:
|
|
- provider: script
|
|
script: bash .travis-deploy.sh
|
|
on:
|
|
branch: master
|
|
- provider: script
|
|
script: bash .travis-deploy.sh
|
|
on:
|
|
tags: true
|