Skip to content

Commit

Permalink
Build many distros during CI run
Browse files Browse the repository at this point in the history
  • Loading branch information
sodre committed Oct 9, 2017
1 parent 07706ea commit 1478d00
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@

CSD_VERSION=0.0.1

#DISTROS=el6 el7 trusty wheezy
DISTROS=el7

TAG:=$(shell git describe --tags | sed -e 's/^v//')
NIFI_VERSION=$(shell echo $(TAG) | sed -e 's/-.*$$//')
BUILD_NUMBER=$(shell echo $(TAG) | sed -e 's/^.*-//')
VERSION:=$(NIFI_VERSION)-$(BUILD_NUMBER)

TAG_DIST=$(shell echo $(TAG) | sed -r -e 's/.*-([[:digit:]]+)-g.*/\1/')
TAG_HASH=$(shell echo $(TAG) | sed -r -e 's/^.*(g[0-9a-f]+|$$)/\1/')
NIFI_VERSION=$(shell echo $(TAG) | sed -r -e 's/\+nifi.*//')
VERSION=$(TAG)

ifeq ($(TRAVIS), true)
DISTROS=el6 el7 sles11 trusty wheezy
else
DISTROS=el7
endif
PARCELS=$(foreach DISTRO,$(DISTROS),NIFI-$(VERSION)-$(DISTRO).parcel)

.INTERMEDIATE: %-SHA256
Expand All @@ -20,8 +23,9 @@ all: info release
info:
@echo ' Git Tag: $(TAG)'
@[ ! -z $(TAG) ]
@echo ' Tag dist: $(TAG_DIST)'
@echo ' Tag hash: $(TAG_HASH)'
@echo ' NiFi version: $(NIFI_VERSION)'
@echo ' Build number: $(BUILD_NUMBER)'
@echo 'Parcel version: $(VERSION)'
@echo ' Parcels: $(PARCELS)'

Expand Down

0 comments on commit 1478d00

Please sign in to comment.