Makefile in immoscout-1.3.1 vs Makefile in immoscout-1.3.2

- old
+ new

@@ -29,11 +29,10 @@ BUNDLE ?= bundle APPRAISAL ?= appraisal GEM ?= gem RAKE ?= rake YARD ?= yard -RAKE ?= rake RUBOCOP ?= rubocop # Files GEMFILES ?= $(subst _,-,$(patsubst $(GEMFILES_DIR)/%.gemfile,%,\ $(wildcard $(GEMFILES_DIR)/*.gemfile))) @@ -59,10 +58,15 @@ # # install Install the dependencies # test Run the whole test suite # clean Clean the dependencies # + # docs Generate the Ruby documentation of the library + # stats Print the code statistics (library and test suite) + # notes Print all the notes from the code + # release Release a new Gem version (maintainers only) + # # shell Run an interactive shell on the container # shell-irb Run an interactive IRB shell on the container install: # Install the dependencies @@ -70,18 +74,22 @@ @$(call run-shell,$(BUNDLE) check || $(BUNDLE) install --path $(VENDOR_DIR)) @$(call run-shell,GEM_HOME=vendor/bundle/ruby/$${RUBY_MAJOR}.0 \ $(GEM) install bundler -v "~> 1.0") @$(call run-shell,$(BUNDLE) exec $(APPRAISAL) install) -update: install +update: # Install the dependencies @$(MKDIR) -p $(VENDOR_DIR) @$(call run-shell,$(BUNDLE) exec $(APPRAISAL) update) -test: #install +test: \ + test-specs \ + test-style + +test-specs: # Run the whole test suite - @$(call run-shell,$(BUNDLE) exec $(RAKE)) + @$(call run-shell,$(BUNDLE) exec $(RAKE) stats spec) $(TEST_GEMFILES): GEMFILE=$(@:test-%=%) $(TEST_GEMFILES): # Run the whole test suite ($(GEMFILE)) @$(call run-shell,$(BUNDLE) exec $(APPRAISAL) $(GEMFILE) $(RAKE)) @@ -116,21 +124,29 @@ | $(XARGS) -rn1 $(DOCKER) rmi -f endif distclean: clean clean-containers clean-images -shell: install +shell: # Run an interactive shell on the container @$(call run-shell,$(BASH) -i) -shell-irb: install +shell-irb: # Run an interactive IRB shell on the container @$(call run-shell,bin/console) -docs: install +docs: # Build the API documentation @$(call run-shell,$(BUNDLE) exec $(YARD) -q && \ $(BUNDLE) exec $(YARD) stats --list-undoc --compact) + +notes: + # Print the code statistics (library and test suite) + @$(call run-shell,$(BUNDLE) exec $(RAKE) notes) + +stats: + # Print all the notes from the code + @$(call run-shell,$(BUNDLE) exec $(RAKE) stats) release: # Release a new gem version @$(BUNDLE) exec $(RAKE) release