From c280a3c90f97cb78d90d0e263178559e506c854b Mon Sep 17 00:00:00 2001 From: Jonne Nauha Date: Sat, 26 Nov 2016 13:56:22 -0800 Subject: [PATCH] add travis badge and fix TRAVIS_TAG empty check. --- .travis.yml | 4 +--- README.md | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1ef4c85..f86afc4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,9 +20,7 @@ script: - sudo $GOROOT/bin/go test -v ./... after_success: - - if [ -z $TRAVIS_TAG ]; then - ./build.sh $TRAVIS_TAG - fi + - if [ -n $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./build.sh $TRAVIS_TAG; fi deploy: provider: releases diff --git a/README.md b/README.md index 525d906..d03bd95 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/jonnenauha/prometheus_varnish_exporter.svg?branch=master)](https://travis-ci.org/jonnenauha/prometheus_varnish_exporter) + # Varnish exporter for Prometheus ![Grafana example](.github/grafana.png)