-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
docker-compose.yml
125 lines (111 loc) · 2.68 KB
/
docker-compose.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
122
123
124
125
version: '3.8'
services:
test-base:
platform: linux/amd64
build:
context: .
dockerfile: test/Dockerfile.test
volumes:
- ./test:/app/test:ro
run-dev:
build:
context: .
dockerfile: Dockerfile
entrypoint: npm run dev
volumes:
- .:/app:rw
ports:
- "3000:3000"
# All tests \/
test-contract:
extends: test-base
environment:
- PACT_BROKER_TOKEN
- PACT_URL
- CI
command: npm run test:contract
volumes:
- ./.git:/app/.git:ro
test-unit:
extends: test-base
environment: # Datadog "CI Tests" variables
- DD_CIVISIBILITY_AGENTLESS_ENABLED
- DD_API_KEY
- DD_SITE
- NODE_OPTIONS
- DD_GIT_REPOSITORY_URL
- DD_GIT_COMMIT_SHA
- DD_GIT_BRANCH
command: npm run test:unit
volumes:
- ./coverage-unit:/app/coverage-unit:rw
test-integration:
extends: test-base
command: npm run test:integration
volumes:
- ./coverage-integration:/app/coverage-integration:rw
environment:
- TEST_TYPE=integration
# Datadog "CI Tests" variables
- DD_CIVISIBILITY_AGENTLESS_ENABLED
- DD_API_KEY
- DD_SITE
- NODE_OPTIONS
- DD_GIT_REPOSITORY_URL
- DD_GIT_COMMIT_SHA
- DD_GIT_BRANCH
run-app-e2e:
build:
context: .
dockerfile: Dockerfile
environment:
NODE_ENV: 'serverest-development'
test-e2e-localhost:
extends: test-base
command: npm run test:e2e
environment:
- TEST_TYPE=e2e-localhost
# Datadog "CI Tests" variables
- DD_CIVISIBILITY_AGENTLESS_ENABLED
- DD_API_KEY
- DD_SITE
- NODE_OPTIONS
- DD_GIT_REPOSITORY_URL
- DD_GIT_COMMIT_SHA
- DD_GIT_BRANCH
depends_on:
- run-app-e2e
network_mode: 'service:run-app-e2e'
test-mutation:
extends: test-base
environment:
- STRYKER_DASHBOARD_API_KEY
- TEST_TYPE=mutation
command: npm run test:mutation
volumes:
- ./reports:/app/reports:rw
test-mutation-diff:
extends: test-base
environment:
- STRYKER_DASHBOARD_API_KEY
- TEST_TYPE=mutation
command: npm run test:mutation:diff
volumes:
- ./reports:/app/reports:rw
test-infra:
build:
context: .
dockerfile: test/infra/Dockerfile.terratest
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
# Deploy test \/
test-e2e-staging:
extends: test-base
command: npm run test:e2e -- --retries 1 --slow 1000
environment:
TEST_TYPE: 'e2e-staging'
test-e2e-smoke-production:
extends: test-base
command: npm run test:smoke -- --retries 1 --slow 1000
environment:
TEST_TYPE: 'e2e-production'