forked from 18F/identity-idp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (47 loc) · 1.35 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# 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.
CONFIG = config/application.yml
PORT ?= 3000
all: check
setup $(CONFIG): config/application.yml.default
bin/setup
fast_setup:
bin/fast_setup
check: lint test
lint:
@echo "--- rubocop ---"
bundle exec rubocop
@echo "--- slim-lint ---"
bundle exec slim-lint app/views
@echo "--- reek ---"
bundle exec reek
@echo "--- fasterer ---"
bundle exec fasterer
@echo "--- eslint ---"
node_modules/.bin/eslint app spec
lintfix:
@echo "--- rubocop fix ---"
bundle exec rubocop -R -a
@echo "--- reek fix ---"
bundle exec reek -t
brakeman:
bundle exec brakeman
test: $(CONFIG)
RAILS_ENV=test bundle exec rake parallel:spec && yarn test
fast_test:
bundle exec rspec --exclude-pattern "**/features/accessibility/*_spec.rb"
run:
foreman start -p $(PORT)
run-dev:
foreman start -p $(PORT) -f Procfile_dev
load_test: $(CONFIG)
bin/load_test $(type)
.PHONY: setup all lint run test check brakeman
normalize_yaml:
i18n-tasks normalize
find ./config/locales -type f | xargs ./scripts/normalize-yaml
generate_deploy_checklist:
ruby lib/release_management/generate_deploy_checklist.rb