-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1.53 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
version: '3.8'
services:
mock-server:
build:
context: .
dockerfile: MockServer/Dockerfile
environment:
- ASPNETCORE_URLS=http://+:80
run-powershell-6-unit-tests:
build:
context: .
dockerfile: Dockerfile.test
args:
BASE_IMAGE: mcr.microsoft.com/powershell:6.2.1-ubuntu-18.04
command: ["-File", "Tests/wait-and-run.ps1", "-TestPath", "Tests/doc-downloader.Unit.Tests.ps1"]
run-powershell-7-unit-tests:
build:
context: .
dockerfile: Dockerfile.test
args:
BASE_IMAGE: mcr.microsoft.com/powershell:7.4-ubuntu-22.04
command: ["-File", "Tests/wait-and-run.ps1", "-TestPath", "Tests/doc-downloader.Unit.Tests.ps1"]
run-powershell-6-integration-tests:
build:
context: .
dockerfile: Dockerfile.test
args:
BASE_IMAGE: mcr.microsoft.com/powershell:6.2.1-ubuntu-18.04
depends_on:
- mock-server
environment:
- MOCK_SERVER_URL=http://mock-server:80
command: ["-File", "Tests/wait-and-run.ps1", "-MockServerUrl", "http://mock-server:80", "-TestPath", "Tests/doc-downloader.Integration.Tests.ps1"]
run-powershell-7-integration-tests:
build:
context: .
dockerfile: Dockerfile.test
args:
BASE_IMAGE: mcr.microsoft.com/powershell:7.4-ubuntu-22.04
depends_on:
- mock-server
environment:
- MOCK_SERVER_URL=http://mock-server:80
command: ["-File", "Tests/wait-and-run.ps1", "-MockServerUrl", "http://mock-server:80", "-TestPath", "Tests/doc-downloader.Integration.Tests.ps1"]