prometheus-adapter/.travis.yml
Solly Ross 3fc2dbdf71 Explicitly build on tags in Travis
Setting `branch: master` causes tag builds to be skipped, so we have to
explicitly also build on tags.
2018-07-13 20:07:23 -04:00

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