Permalink
Browse files

Make file to run all the things

Ok, maybe not all for now - but at least we could run mutation tests easily
  • Loading branch information...
1 parent c9e76c1 commit 46506e97da8e1d4d5b3304b51b8f75fccb6051d4 @mpraglowski mpraglowski committed Apr 22, 2016
Showing with 21 additions and 0 deletions.
  1. +21 −0 Makefile
View
@@ -0,0 +1,21 @@
+install-bundler: ## Install gem dependencies
+ @echo "Installing gem dependencies"
+ @bundle install
+
+install: install-bundler ## Prepare current development environment
+
+test: ## Run tests
+ @echo "Running basic tests - beware: this won't guarantee build pass"
+ @bundle exec rspec
+
+mutate: test ## Run mutation tests
+ @echo "Running mutation tests - only 100% free mutation will be accepted"
+ @bundle exec mutant --include lib --require ruby_event_store --use rspec "RubyEventStore*"
+
+.PHONY: help
+
+help:
+ @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
+
+.DEFAULT_GOAL := help
+

0 comments on commit 46506e9

Please sign in to comment.