-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
PSTeams.AzurePipelines.yml
60 lines (53 loc) · 1.78 KB
/
PSTeams.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
jobs:
- job: Build_PS_Win2016
pool:
vmImage: windows-latest
steps:
- powershell: |
Install-Module -Name Pester -Repository PSGallery -Force -SkipPublisherCheck
.\PSTeams.Tests.ps1 $(TEAMSPESTERID)
env:
TEAMSPESTERID: $(TEAMSPESTERID)
displayName: "Run Pester Tests"
- job: Windows_PowerShell_7
pool:
vmImage: windows-latest
steps:
- pwsh: "Install-Module -Name Pester -Repository PSGallery -Force -SkipPublisherCheck"
displayName: "Update PESTER"
env:
TEAMSPESTERID: $(TEAMSPESTERID)
- pwsh: '.\PSTeams.Tests.ps1 $(TEAMSPESTERID)'
env:
TEAMSPESTERID: $(TEAMSPESTERID)
displayName: "Run Tests on Windows 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 '.\PSTeams.Tests.ps1' $(TEAMSPESTERID)
displayName: "Run Pester Tests"
env:
TEAMSPESTERID: $(TEAMSPESTERID)
- job: Build_PSCore_MacOS
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 '.\PSTeams.Tests.ps1' $(TEAMSPESTERID)
displayName: "Run Pester Tests"
env:
TEAMSPESTERID: $(TEAMSPESTERID)