-
Notifications
You must be signed in to change notification settings - Fork 0
/
dip.yml
67 lines (56 loc) · 1.41 KB
/
dip.yml
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
64
65
66
67
version: '7'
environment:
RUBY_VERSION: '3.3'
compose:
files:
- docker-compose.yml
interaction:
bash:
description: Open the Bash shell in app's container
service: ruby
command: /bin/bash
bundle:
description: Run Bundler commands
service: ruby
command: bundle
rails:
description: Run RoR commands
service: ruby
command: bundle exec rails
appraisal:
description: Run Appraisal commands
service: ruby
command: bundle exec appraisal
swaggerize:
description: Build swagger docs
service: ruby
environment:
RAILS_ENV: test
command: bundle exec rspec --format Rswag::Specs::SwaggerFormatter --order defined spec/requests/
rspec:
description: Run Rspec commands
service: ruby
command: bundle exec rspec
subcommands:
all:
command: bundle exec appraisal rspec
rails-6.1:
command: bundle exec appraisal rails-6.1 rspec
rails-7.0:
command: bundle exec appraisal rails-7.0 rspec
rails-7.1:
command: bundle exec appraisal rails-7.1 rspec
rubocop:
description: Run Ruby linter
service: ruby
command: bundle exec rubocop
setup:
description: Install deps
service: ruby
command: bin/setup
provision:
- dip compose down --volumes
- cp -f lefthook-local.dip_example.yml lefthook-local.yml
- rm -f Gemfile.lock
- rm -f gemfiles/*gemfile*
- dip setup