forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
http.yml
73 lines (59 loc) · 1.67 KB
/
http.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
trigger: none
pr:
branches:
include:
- "*"
schedules:
- cron: "0 13 * * *" # 1PM UTC => 5 AM PST
displayName: HttpStress nightly run
branches:
include:
- master
variables:
- template: ../variables.yml
- name: dockerfilesFolder
value: $(Build.SourcesDirectory)/eng/docker
- name: httpStressProject
value: $(sourcesRoot)/System.Net.Http/tests/StressTests/HttpStress
- name: sdkBaseImage
value: dotnet-sdk-libraries-current
jobs:
- job: linux
displayName: Docker Linux
timeoutInMinutes: 120
pool:
name: Hosted Ubuntu 1604
steps:
- checkout: self
clean: true
fetchDepth: 5
- bash: |
$(dockerfilesFolder)/build-docker-sdk.ps1 -t $(sdkBaseImage) -c $(BUILD_CONFIGURATION)
displayName: Build CLR and Libraries
- bash: |
$(httpStressProject)/run-docker-compose.ps1 -o -c $(BUILD_CONFIGURATION) -t $(sdkBaseImage)
displayName: Build HttpStress
- bash: |
cd '$(httpStressProject)'
docker-compose up --abort-on-container-exit --no-color
displayName: Run HttpStress
- job: windows
displayName: Docker NanoServer
timeoutInMinutes: 120
pool:
vmImage: 'windows-latest'
steps:
- checkout: self
clean: true
fetchDepth: 1
lfs: false
- pwsh: |
$(dockerfilesFolder)/build-docker-sdk.ps1 -w -t $(sdkBaseImage) -c $(BUILD_CONFIGURATION)
displayName: Build CLR and Libraries
- pwsh: |
$(httpStressProject)/run-docker-compose.ps1 -w -o -c $(BUILD_CONFIGURATION) -t $(sdkBaseImage)
displayName: Build HttpStress
- pwsh: |
cd '$(httpStressProject)'
docker-compose up --abort-on-container-exit --no-color
displayName: Run HttpStress