diff options
author | Eirik Tsarpalis <eirik.tsarpalis@gmail.com> | 2019-12-12 20:05:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-12 20:05:22 +0300 |
commit | 395107644e961b0ffc2973c1d27d409295f0cdf9 (patch) | |
tree | 2cae42f791aa1951a81862d8addfb2d68d4a22f0 /eng/pipelines/libraries/stress/http.yml | |
parent | 9a54db91716dda3ca780a6090ac6e039e1f5e06d (diff) |
Consolidate NCL stress testing infrastructure (#700)
Diffstat (limited to 'eng/pipelines/libraries/stress/http.yml')
-rw-r--r-- | eng/pipelines/libraries/stress/http.yml | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/eng/pipelines/libraries/stress/http.yml b/eng/pipelines/libraries/stress/http.yml new file mode 100644 index 00000000000..c4916c5beec --- /dev/null +++ b/eng/pipelines/libraries/stress/http.yml @@ -0,0 +1,72 @@ +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 + 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 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 Nano Server + 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 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 |