mirror of
https://github.com/PowerShell/PSReadLine
synced 2026-06-08 12:12:13 +00:00
Add Azure Devops CI for Linux/Mac (#806)
Tests all pass in Azure Devops on Linux and Mac, but fail on Windows so the Windows job is disabled until that can be fixed.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
|
||||
parameters:
|
||||
name: '' # defaults for any parameters that aren't specified
|
||||
vmImage: ''
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
pool:
|
||||
vmImage: ${{ parameters.vmImage }}
|
||||
|
||||
variables:
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||
POWERSHELL_TELEMETRY_OPTOUT: 1
|
||||
# Avoid expensive initialization of dotnet cli, see: http://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds
|
||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
||||
|
||||
steps:
|
||||
- script: dotnet restore PSReadLine/PSReadLine.csproj
|
||||
- script: dotnet nuget locals all --list
|
||||
- powershell: |
|
||||
Install-Module InvokeBuild,platyPS -Scope CurrentUser -Force
|
||||
Import-Module InvokeBuild,platyPS
|
||||
Invoke-Build -Task ZipRelease -Configuration Release
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
jobs:
|
||||
- template: azure-devops-psreadline.yml
|
||||
parameters:
|
||||
name: Linux
|
||||
vmImage: 'ubuntu-16.04'
|
||||
|
||||
- template: azure-devops-psreadline.yml
|
||||
parameters:
|
||||
name: macOS
|
||||
vmImage: 'macOS-10.13'
|
||||
|
||||
#- template: azure-devops-psreadline.yml
|
||||
# parameters:
|
||||
# name: Windows
|
||||
# vmImage: 'vs2017-win2016'
|
||||
+2
-1
@@ -4,5 +4,6 @@
|
||||
<clear />
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<add key="powershell-core" value="https://powershell.myget.org/F/powershell-core/api/v3/index.json" />
|
||||
<add key="powershell-modules" value="https://www.powershellgallery.com/api/v2/" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user