-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
60 lines (41 loc) · 1.28 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
compose = docker compose
inferno = run inferno
.PHONY: setup generate summary new_release tests run pull build up stop down rubocop migrate clean_generated ig_download
setup: pull build migrate
generate:
rm -rf lib/au_core_test_kit/generated/
$(compose) $(inferno) bundle exec rake au_core:generate
$(compose) $(inferno) rubocop -A lib/au_core_test_kit/
$(compose) $(inferno) ruby lib/au_core_test_kit/generator/summary_generator.rb
generate_local:
rm -rf lib/au_core_test_kit/generated/
bundle exec rake au_core:generate
rubocop -A lib/au_core_test_kit/
summary: build
$(compose) $(inferno) ruby lib/au_core_test_kit/generator/summary_generator.rb
new_release: build ig_download generate summary
tests:
$(compose) run -e APP_ENV=test inferno bundle exec rspec
run: build up
pull:
$(compose) pull
build:
$(compose) build
up:
$(compose) up
stop:
$(compose) stop
down:
$(compose) down
rubocop:
$(compose) $(inferno) rubocop
rubocop-fix:
$(compose) $(inferno) rubocop -A
migrate:
$(compose) $(inferno) bundle exec rake db:migrate
clean_generated:
sudo rm -rf lib/au_core_test_kit/generated/
git checkout lib/au_core_test_kit/generated/
ig_download:
$(compose) $(inferno) ruby lib/au_core_test_kit/generator/ig_download.rb
full_develop_restart: stop down generate setup run