Skip to content

Commit 294baf2

Browse files
authored
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.
1 parent 803008a commit 294baf2

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

az-ci/azure-devops-psreadline.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
parameters:
3+
name: '' # defaults for any parameters that aren't specified
4+
vmImage: ''
5+
6+
jobs:
7+
- job: ${{ parameters.name }}
8+
pool:
9+
vmImage: ${{ parameters.vmImage }}
10+
11+
variables:
12+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
13+
POWERSHELL_TELEMETRY_OPTOUT: 1
14+
# Avoid expensive initialization of dotnet cli, see: http://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds
15+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
16+
17+
steps:
18+
- script: dotnet restore PSReadLine/PSReadLine.csproj
19+
- script: dotnet nuget locals all --list
20+
- powershell: |
21+
Install-Module InvokeBuild,platyPS -Scope CurrentUser -Force
22+
Import-Module InvokeBuild,platyPS
23+
Invoke-Build -Task ZipRelease -Configuration Release
24+

az-ci/azure-pipelines.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
jobs:
3+
- template: azure-devops-psreadline.yml
4+
parameters:
5+
name: Linux
6+
vmImage: 'ubuntu-16.04'
7+
8+
- template: azure-devops-psreadline.yml
9+
parameters:
10+
name: macOS
11+
vmImage: 'macOS-10.13'
12+
13+
#- template: azure-devops-psreadline.yml
14+
# parameters:
15+
# name: Windows
16+
# vmImage: 'vs2017-win2016'

nuget.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
<clear />
55
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
66
<add key="powershell-core" value="https://powershell.myget.org/F/powershell-core/api/v3/index.json" />
7+
<add key="powershell-modules" value="https://www.powershellgallery.com/api/v2/" />
78
</packageSources>
8-
</configuration>
9+
</configuration>

0 commit comments

Comments
 (0)