This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbatect.yml
121 lines (107 loc) · 2.78 KB
/
batect.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
containers:
build-env:
image: ruby:3.2.2
volumes:
- local: .
container: /code
options: cached
- type: cache
name: bundle-cache
container: /bundle-cache
working_directory: /code
environment:
BUNDLE_PATH: /bundle-cache
run_as_current_user:
enabled: true
home_directory: /home/container-user
database:
build_directory: .batect/database
environment:
POSTGRES_USER: international-transfers-service
POSTGRES_PASSWORD: TheSuperSecretPassword
POSTGRES_DB: international-transfers-service
exchange-rate-service:
build_directory: .batect/exchange-rate-service-fake
international-transfers-service:
build_directory: .batect/international-transfers-service
dependencies:
- database
- exchange-rate-service
tasks:
setup:
description: Install dependencies.
group: Setup tasks
run:
container: build-env
command: bundle install
update:
description: Update dependencies to the latest available verstion.
group: Dependency management tasks
run:
container: build-env
command: bundle update
outdated:
description: List outdated dependencies.
group: Dependency management tasks
run:
container: build-env
command: bundle outdated
unitTest:
description: Run the unit tests.
group: Test tasks
run:
container: build-env
command: bundle exec rake spec:unit
integrationTest:
description: Run the integration tests.
group: Test tasks
dependencies:
- database
- exchange-rate-service
run:
container: build-env
command: bundle exec rake spec:integration
journeyTest:
description: Run the journey tests.
group: Test tasks
prerequisites:
- build
dependencies:
- international-transfers-service
run:
container: build-env
command: bundle exec rake spec:journey
lint:
description: Run RuboCop to lint all Ruby files.
group: Linting tasks
run:
container: build-env
command: bundle exec rake rubocop
guard:
description: Start guard, which is configured to run the unit tests and RuboCop.
group: Utility tasks
run:
container: build-env
command: bundle exec guard
shell:
description: Start a shell in the development environment.
group: Utility tasks
run:
container: build-env
command: bash
build:
description: Build the application.
group: Build tasks
run:
container: build-env
command: bundle exec rake prepareImage
app:
description: Start the application.
group: Test tasks
prerequisites:
- build
run:
container: international-transfers-service
ports:
- local: 4567
container: 4567