Skip to content

Commit

Permalink
add travis badge and fix TRAVIS_TAG empty check.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnenauha committed Nov 26, 2016
1 parent c3e1e16 commit c280a3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit c280a3c

Please sign in to comment.