forked from ServeRest/ServeRest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
105 lines (91 loc) · 2.07 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
version: '3.8'
services:
base:
build:
context: .
dockerfile: Dockerfile.dev
target: test
volumes:
- ./test:/app/test
run-dev:
build:
context: .
dockerfile: Dockerfile.dev
target: dev
volumes:
- .:/app
ports:
- "3000:3000"
# All tests \/
test-contract:
extends: base
environment:
- PACT_BROKER_TOKEN
- PACT_URL
- CI
command: npm run test:contract
volumes:
- ./.git:/app/.git
test-unit:
extends: base
command: npm run test:unit
volumes:
- ./coverage-unit:/app/coverage-unit
test-integration:
extends: base
command: npm run test:integration
volumes:
- ./coverage-integration:/app/coverage-integration
environment:
TEST_TYPE: 'integration'
run-app-e2e:
build:
context: .
dockerfile: Dockerfile
environment:
NODE_ENV: 'serverest-development'
test-e2e-localhost:
extends: base
command: npm run test:e2e
environment:
TEST_TYPE: 'e2e-localhost'
depends_on:
- run-app-e2e
network_mode: 'service:run-app-e2e'
test-mutation:
extends: base
environment:
- STRYKER_DASHBOARD_API_KEY
- TEST_TYPE=mutation
command: npm run test:mutation
volumes:
- ./reports:/app/reports
test-mutation-diff:
extends: base
environment:
- STRYKER_DASHBOARD_API_KEY
- TEST_TYPE=mutation
command: npm run test:mutation:diff
volumes:
- ./reports:/app/reports
test-infra:
build:
context: .
dockerfile: Dockerfile.terratest
command: >
bash -c "go mod tidy
&& go test -count=1 -v -timeout 5m"
volumes:
- ./test/infra:/app/test/infra
- /var/run/docker.sock:/var/run/docker.sock
# Deploy test \/
test-e2e-staging:
extends: base
command: npm run test:e2e -- --retries 1 --slow 1000
environment:
TEST_TYPE: 'e2e-staging'
test-e2e-smoke-production:
extends: base
command: npm run test:smoke -- --retries 1 --slow 1000
environment:
TEST_TYPE: 'e2e-production'