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:
Jason Shirk
2018-11-09 13:34:16 -08:00
committed by GitHub
parent 803008a092
commit 294baf2ced
3 changed files with 42 additions and 1 deletions
+24
View File
@@ -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
+16
View File
@@ -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
View File
@@ -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>