-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
38 lines (26 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
bundler: ## Install gem dependencies
@echo "Installing gem dependencies"
@bundle install
yarn: ## Install yarn dependencies
@echo "Installing yarn dependencies"
@yarn install
install: bundler yarn ## Install all dependencies
migrate: ## Migrate development database
@echo "Migrating development database"
@bundle exec rake db:migrate db:test:prepare
db: ## Setup development database
@echo "Setting up the database"
@bundle exec rake db:setup
cleanup: ## Clean files which pile up from time to time
@rm -f log/development.log
@rm -f log/test.log
dev: install migrate cleanup ## This is an short alias for day to day update of dev's environment
mutate: test ## Run mutation tests
@bundle exec mutant -j1 --include test --require ./config/environment --use minitest -- 'Ordering*'
test: ## Run unit tests
@echo "Running unit tests"
@bundle exec rails t
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: help test
.DEFAULT_GOAL := help