-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 1002 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 1002 Bytes
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
ROOT_DIR = $(shell pwd)
.SILENT: ;
install: build_docker bundle_install yarn_install setup_database setup_test_database echo_help
up:
docker-compose up rails sidekiq
rspec:
docker-compose run --rm runner bin/rspec --exclude-pattern spec/features/*/**/*_spec.rb
rspec_features:
docker-compose run --rm rspec_features bin/rspec --pattern spec/features/*/**/*_spec.rb
build_docker:
docker-compose build; \
echo "Docker images was successfully built" \
bundle_install:
docker-compose run --rm runner bundle install; \
echo "Bundle successfully installed." \
yarn_install:
docker-compose run --rm runner yarn install; \
echo "Bundle successfully installed." \
setup_database:
docker-compose run --rm runner rake db:setup db:seed; \
echo "Database successfully configured." \
setup_test_database:
RAILS_ENV=test docker-compose run --rm runner rake db:prepare; \
echo "Test database successfully configured." \
echo_help:
echo "You can start the project by run \`docker-compose up\`"