This repository was archived by the owner on Oct 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbatect.yml
More file actions
106 lines (93 loc) · 2.52 KB
/
batect.yml
File metadata and controls
106 lines (93 loc) · 2.52 KB
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
project_name: international-transfers-service
containers:
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
docker-push-env:
build_directory: .batect/docker-push-env
volumes:
- local: .
container: /code
options: cached
- local: /var/run/docker.sock
container: /var/run/docker.sock
working_directory: /code
tasks:
build:
description: Build the application.
group: Build tasks
run:
container: java-build-env
command: ./gradlew shadowJar
unitTest:
description: Run the unit tests.
group: Test tasks
run:
container: java-build-env
command: ./gradlew test
continuousUnitTest:
description: Run the unit tests and then re-run them when any code changes are detected.
group: Test tasks
run:
container: java-build-env
command: ./gradlew --continuous test
integrationTest:
description: Run the integration tests.
group: Test tasks
dependencies:
- database
- exchange-rate-service
run:
container: java-build-env
command: ./gradlew integrationTest
journeyTest:
description: Run the journey tests.
group: Test tasks
prerequisites:
- build
dependencies:
- international-transfers-service
run:
container: java-build-env
command: ./gradlew journeyTest
run:
description: Run the application.
group: Test tasks
prerequisites:
- build
run:
container: international-transfers-service
ports:
- local: 6001
container: 6001
shell:
description: Start a shell in the development environment.
group: Utility tasks
run:
container: java-build-env
command: bash
pushImage:
description: Build and push the production application image to Docker Hub.
group: Publishing tasks
prerequisites:
- build
run:
container: docker-push-env
command: ./.batect/buildAndPushImage.sh
environment:
DOCKER_USER: $DOCKER_USER
DOCKER_PASSWORD: $DOCKER_PASSWORD
include:
- type: git
repo: https://github.com/batect/java-bundle.git
ref: 0.8.0