-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (40 loc) · 967 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
install:
sudo apt install -y imagemagick libvips
bin/setup
bin/rails assets:precompile
bin/rails db:seed
without-production:
bundle config set --local without 'production'
install-without-production: without-production install
gem install slim_lint
cp -n .env.example .env || true
dev-start:
bin/rails s
start:
bin/rails s -p 3000 -b "0.0.0.0"
console:
bin/rails console
test:
clear || true
bin/rails db:environment:set RAILS_ENV=test
NODE_ENV=test bin/rails test
test-system:
clear || true
rm -rf tmp/screenshots/ || true
firefox -v || sudo apt install -y firefox
bin/rails db:environment:set RAILS_ENV=test
NODE_ENV=test bin/rails test:system
test-system-headless:
MOZ_HEADLESS=1 make test-system
test-all:
MOZ_HEADLESS=1 bin/rails test:all
test-all-coverage:
rm -rf coverage
COVERAGE=1 make test-all
slim-lint:
slim-lint app/**/*.slim || true
lint: slim-lint
bundle exec rubocop
lint-fix:
bundle exec rubocop -A
.PHONY: test