Skip to content

Commit

Permalink
Makefile is now aware of rails_event_store-rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
fidel committed Sep 15, 2017
1 parent e167c42 commit 6c6cf15
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ test-rails-event-store-active-record:
mutate-rails-event-store-active-record:
@make -C rails_event_store_active_record mutate

install-rails-event-store-rspec:
@make -C rails_event_store-rspec install

test-rails-event-store-rspec:
@make -C rails_event_store-rspec test

mutate-rails-event-store-rspec:
@make -C rails_event_store-rspec mutate

git-check-clean:
@git diff --quiet --exit-code

Expand All @@ -63,6 +72,7 @@ set-version:
@find . -name *.gemspec -exec sed -i "" "s/\('ruby_event_store', \)\(.*\)/\1'= $(RES_VERSION)'/" {} \;
@find . -name *.gemspec -exec sed -i "" "s/\('rails_event_store_active_record', \)\(.*\)/\1'= $(RES_VERSION)'/" {} \;
@find . -name *.gemspec -exec sed -i "" "s/\('aggregate_root', \)\(.*\)/\1'= $(RES_VERSION)'/" {} \;
@find . -name *.gemspec -exec sed -i "" "s/\('rails_event_store-rspec', \)\(.*\)/\1'= $(RES_VERSION)'/" {} \;
@git add -A **/*.gemspec **/version.rb
@git ci -m "Version v$(RES_VERSION)"

Expand All @@ -78,13 +88,16 @@ release-rails-event-store-active-record:
release-aggregate-root:
@make -C aggregate_root release

install: install-aggregate-root install-ruby-event-store install-rails-event-store install-rails-event-store-active-record ## Install all deps
release-rails-event-store-rspec:
@make -C rails_event_store-rspec release

install: install-aggregate-root install-ruby-event-store install-rails-event-store install-rails-event-store-active-record install-rails-event-store-rspec ## Install all deps

test: test-aggregate-root test-ruby-event-store test-rails-event-store test-rails-event-store-active-record ## Run all specs
test: test-aggregate-root test-ruby-event-store test-rails-event-store test-rails-event-store-active-record test-rails-event-store-rspec ## Run all specs

mutate: mutate-aggregate-root mutate-ruby-event-store mutate-rails-event-store mutate-rails-event-store-active-record ## Run all mutation tests
mutate: mutate-aggregate-root mutate-ruby-event-store mutate-rails-event-store mutate-rails-event-store-active-record mutate-rails-event-store-rspec ## Run all mutation tests

release: git-check-clean git-check-committed set-version git-tag release-rails-event-store release-ruby-event-store release-rails-event-store-active-record release-aggregate-root ## Make a new release and push to RubyGems
release: git-check-clean git-check-committed set-version git-tag release-rails-event-store release-ruby-event-store release-rails-event-store-active-record release-aggregate-root release-rails-event-store-rspec ## Make a new release and push to RubyGems
@echo Released v$(RES_VERSION)

UPSTREAM_REV = `git rev-parse upstream/master`
Expand Down

0 comments on commit 6c6cf15

Please sign in to comment.