-
-
Notifications
You must be signed in to change notification settings - Fork 109
/
PSWriteHTML.AzurePipelines.yml
39 lines (37 loc) · 1.27 KB
/
PSWriteHTML.AzurePipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
jobs:
- job: Build_PS_Win2016
pool:
vmImage: windows-latest
steps:
- powershell: |
Install-Module -Name Pester -Repository PSGallery -Force -SkipPublisherCheck
.\PSWriteHTML.Tests.ps1
displayName: "Run Pester Tests - PowerShell 5"
- pwsh: '.\PSWriteHTML.Tests.ps1'
displayName: "Run Pester Tests - PowerShell 7+"
- job: Build_PSCore_Ubuntu1604
pool:
vmImage: ubuntu-latest
steps:
- script: |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
sudo apt-get update
sudo apt-get install -y powershell
displayName: "Install PowerShell Core"
- script: |
pwsh -c '.\PSWriteHTML.Tests.ps1'
displayName: "Run Pester Tests"
- job: Build_PSCore_MacOS1013
pool:
vmImage: macOS-latest
steps:
- script: |
brew update
brew tap caskroom/cask
brew install mono-libgdiplus
brew install --cask powershell
displayName: "Install PowerShell Core"
- script: |
pwsh -c '.\PSWriteHTML.Tests.ps1'
displayName: "Run Pester Tests"