forked from beyondcomputing-org/Atlassian.Bitbucket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
74 lines (65 loc) · 1.96 KB
/
azure-pipelines.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
jobs:
- job: Build_PS_Win2016
pool:
vmImage: vs2017-win2016
steps:
- powershell: |
.\Build.ps1
displayName: 'Test'
- task: PublishTestResults@2
displayName: 'Publish Test Results'
condition: always()
inputs:
testRunner: 'NUnit'
testResultsFiles: '**/TestResults.xml'
testRunTitle: 'PS_Win2016'
- task: ArchiveFiles@2
displayName: 'Archive Build'
inputs:
rootFolderOrFile: Build
includeRootFolder: false
replaceExistingArchive: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
- job: Build_PSCore_Ubuntu1604
pool:
vmImage: ubuntu-16.04
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 '.\Build.ps1'
displayName: 'Test'
- task: PublishTestResults@2
inputs:
testRunner: 'NUnit'
testResultsFiles: '**/TestResults.xml'
testRunTitle: 'PSCore_Ubuntu1604'
condition: always()
displayName: 'Publish Test Results'
- job: Build_PSCore_MacOS1013
pool:
vmImage: xcode9-macos10.13
steps:
- script: |
brew update
brew tap caskroom/cask
brew cask install powershell
displayName: 'Install PowerShell Core'
- script: |
pwsh -c '.\Build.ps1'
displayName: 'Test'
- task: PublishTestResults@2
inputs:
testRunner: 'NUnit'
testResultsFiles: '**/TestResults.xml'
testRunTitle: 'PSCore_MacOS1013'
condition: always()
displayName: 'Publish Test Results'