-
Notifications
You must be signed in to change notification settings - Fork 2
/
eshop-container-multistrategy.yml
54 lines (48 loc) · 1.24 KB
/
eshop-container-multistrategy.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
trigger: none
resources:
containers:
- container: agent_container21
image: microsoft/dotnet:2.1-sdk
- container: agent_container22
image: microsoft/dotnet:2.2-sdk
- container: sqlserver
image: microsoft/mssql-server-linux
options: -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=StrongPassw0rd"
ports:
- 1433:1433
- container: redislatest
image: redis:alpine
ports:
- 6379:6379
- container: redis4
image: redis:4.0.13-alpine
ports:
- 6379:6379
pool: penguins
# vmImage: 'ubuntu-16.04'
strategy:
matrix:
redislatest:
redisService: redisLatest
containerImage: agent_container21
redis4:
redisService: redis4
containerImage: agent_container21
redissdk22latest:
redisService: redisLatest
containerImage: agent_container22
container: $[ variables['containerImage'] ]
services:
sqlserver: sqlserver
redis: $[ variables['redisService'] ]
steps:
- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
inputs:
command: restore
projects: '**/FunctionalTests.csproj'
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
projects: '**/FunctionalTests.csproj'