forked from 18F/identity-idp
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 854 Bytes
/
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
# 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
all: check
setup $(CONFIG): config/application.yml.example
bin/setup
check: lint test
lint: $(CONFIG)
@echo "--- rubocop ---"
bundle exec rubocop -R
@echo "--- slim-lint ---"
bundle exec slim-lint app/views
@echo "--- reek ---"
bundle exec reek
brakeman:
bundle exec brakeman
test: $(CONFIG)
bundle exec rspec && bundle exec teaspoon
fast_test: $(CONFIG)
bundle exec rspec --exclude-pattern "**/features/accessibility/*_spec.rb"
run: $(CONFIG)
foreman start --port 3000
.PHONY: setup all lint run test check brakeman