Browse Source

Added drone instead of travis detection to makefile

tags/v1.2.0-rc1
Thomas Boerger 9 years ago
parent
commit
8cd79eaab7
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      Makefile

+ 4
- 4
Makefile View File

@@ -19,11 +19,11 @@ PACKAGES ?= $(shell go list ./... | grep -v /vendor/)

TAGS ?=

ifneq ($(TRAVIS_TAG),)
VERSION ?= $(TRAVIS_TAG)
ifneq ($(DRONE_TAG),)
VERSION ?= $(DRONE_TAG)
else
ifneq ($(TRAVIS_BRANCH),)
VERSION ?= $(TRAVIS_BRANCH)
ifneq ($(DRONE_BRANCH),)
VERSION ?= $(DRONE_BRANCH)
else
VERSION ?= master
endif


Loading…
Cancel
Save