Set up CI with Azure Pipelines [skip ci]
This commit is contained in:
@@ -0,0 +1,64 @@
|
|||||||
|
# Starter pipeline
|
||||||
|
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
||||||
|
# Add steps that build, run tests, deploy, and more:
|
||||||
|
# https://aka.ms/yaml
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- job: Build_PS_Win2016
|
||||||
|
pool:
|
||||||
|
vmImage: vs2017-win2016
|
||||||
|
steps:
|
||||||
|
- powershell: |
|
||||||
|
.\build.ps1 -Verbose
|
||||||
|
displayName: 'Build and Test'
|
||||||
|
- task: PublishTestResults@2
|
||||||
|
inputs:
|
||||||
|
testRunner: 'NUnit'
|
||||||
|
testResultsFiles: '**/TestResults.xml'
|
||||||
|
testRunTitle: 'PS_Win2016'
|
||||||
|
displayName: 'Publish Test Results'
|
||||||
|
|
||||||
|
- 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: 'Build and Test'
|
||||||
|
|
||||||
|
- task: PublishTestResults@2
|
||||||
|
inputs:
|
||||||
|
testRunner: 'NUnit'
|
||||||
|
testResultsFiles: '**/TestResults.xml'
|
||||||
|
testRunTitle: 'PSCore_Ubuntu1604'
|
||||||
|
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: 'Build and Test'
|
||||||
|
|
||||||
|
- task: PublishTestResults@2
|
||||||
|
inputs:
|
||||||
|
testRunner: 'NUnit'
|
||||||
|
testResultsFiles: '**/TestResults.xml'
|
||||||
|
testRunTitle: 'PSCore_MacOS1013'
|
||||||
|
displayName: 'Publish Test Results'
|
||||||
Reference in New Issue
Block a user