diff --git a/.vsts-ci/ci.yml b/.vsts-ci/ci.yml new file mode 100644 index 000000000..7981d3022 --- /dev/null +++ b/.vsts-ci/ci.yml @@ -0,0 +1,41 @@ +name: PSReadLine-$(Date:yyyyMMdd).$(Rev:.rr) +trigger: + # Batch merge builds together while a merge build is running + batch: true + branches: + include: + - ci +pr: + branches: + include: + - ci + +variables: + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + POWERSHELL_TELEMETRY_OPTOUT: 1 + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 + PSREADLINE_TESTRUN: 1 + +stages: +- stage: PSReadLine + jobs: + - job: Build_Test + pool: + vmImage: windows-latest + + steps: + + - pwsh: | + Write-Host "PS Version: $($PSVersionTable.PSVersion)" + Set-Location -Path '$(Build.SourcesDirectory)' + .\build.ps1 -Bootstrap + .\build.ps1 -Configuration Release -Framework net462 + + $output = '$(Build.SourcesDirectory)\bin\Release\PSReadLine' + Write-Host "##vso[artifact.upload containerfolder=PSReadLine;artifactname=PSReadLine]$output" + displayName: Bootstrap & Build + + - pwsh: | + Set-Location -Path '$(Build.SourcesDirectory)' + .\build.ps1 -Test -Configuration Release -Framework net462 + displayName: Run Tests