Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
Install .NET runtime 2.1 in Windows CI for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSimons committed Jun 9, 2021
1 parent 94f9147 commit f7e1cb9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ phases:
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
name: DotNetCore-Windows
demands:
- agent.os -equals Windows_NT
- agent.os -equals Windows_NT
parallel: 2
matrix:
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
Expand Down Expand Up @@ -98,5 +98,6 @@ phases:
publishUsingPipelines: true
dependsOn:
- Windows_NT
- Source_Build_Managed
queue:
name: Hosted VS2017
11 changes: 9 additions & 2 deletions eng/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ phases:
azureSubscription: 'HelixProd_KeyVault'
KeyVaultName: HelixProdKV
SecretsFilter: 'HelixApiAccessToken'
condition: always()
condition: always()
- task: AzureKeyVault@1
inputs:
azureSubscription: 'DotNet-Engineering-Services_KeyVault'
Expand All @@ -49,7 +49,14 @@ phases:
condition: succeeded()

- ${{ if eq(parameters.agentOs, 'Windows_NT') }}:
- script: eng\common\CIBuild.cmd
# workaround for https://github.com/dotnet/arcade/issues/7493
- powershell: echo "##vso[task.setvariable variable=BUILD_REPOSITORY_URI]https://dnceng@dev.azure.com/dnceng/internal/_git/dotnet-cliCommandLineParser"
displayName: Fixup BUILD_REPOSITORY_URI
- powershell: echo "##vso[task.setvariable variable=SYSTEM_TEAMFOUNDATIONCOLLECTIONURI]https://dnceng@dev.azure.com/dnceng/internal/_git/dotnet-cliCommandLineParser"
displayName: Fixup BUILD_REPOSITORY_URI
- script: echo %BUILD_REPOSITORY_URI%
- script: echo %SYSTEM_TEAMFOUNDATIONCOLLECTIONURI%
- script: eng\CIBuild.cmd
-configuration %BuildConfig%
$(_PublishArgs)
$(_SignArgs)
Expand Down
8 changes: 8 additions & 0 deletions eng/cibuild.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off

@REM install the 2.1.0 runtime for running tests
powershell -ExecutionPolicy ByPass -command "& """%~dp0common\dotnet-install.ps1""" -runtime dotnet -version 2.1.0"
if %errorlevel% neq 0 exit /b %errorlevel%

powershell -ExecutionPolicy ByPass -command "& """%~dp0common\Build.ps1""" -restore -build -test -sign -pack -publish -ci %*"
exit /b %errorlevel%

0 comments on commit f7e1cb9

Please sign in to comment.