RailsEventStore/rails_event_store

View on GitHub
contrib/dres_client/Makefile

Summary

Maintainability
Test Coverage
GEM_VERSION  = $(shell cat lib/dres_client/version.rb | grep VERSION | egrep -o '\d+\.\d+\.\d+')
GEM_NAME     = dres_client
REQUIRE      = $(GEM_NAME)

include ../../support/make/install.mk

test: ## Run unit tests
    @echo "Running unit tests"
    @bundle exec rspec

build:
    @echo "Building gem package"
    @gem build -V dres_client.gemspec
    @mkdir -p pkg/
    @mv dres_client-*.gem pkg/

clean:
    @echo "Removing previously built package"
    -rm pkg/$(GEM_NAME)-$(GEM_VERSION).gem

release: install test build push clean

version:
    @echo "Lists versions"
    @echo $(GEM_VERSION)

help:
    @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

.PHONY: help
.DEFAULT_GOAL := help