Makefile
# Makefile for building and running the project.# The purpose of this Makefile is to avoid developers having to remember# project-specific commands for building, running, etc. Recipes longer# than one or two lines should live in script files of their own in the# bin/ directory. PORT ?= 3001 all: check setup: bin/setup check: lint test lint: @echo "--- rubocop ---"ifdef JUNIT_OUTPUT bundle exec rubocop --parallel --format progress --format junit --out rubocop.xml --display-only-failedelse bundle exec rubocop --parallelendif @echo "--- eslint ---" yarn lint lint_database_schema_files: ## Checks that database schema files have not changed (! git diff --name-only | grep db/schema.rb) || (echo "Error: db/schema.rb does not match after running migrations"; exit 1) test: bundle exec rspec test_basic: COVERAGE=true bundle exec rspec --exclude-pattern "spec/features/accessibility/*_spec.rb" run: foreman start -p $(PORT) .PHONY: setup all lint lint_database_schema_files run test check