Update Build Process
Remove unnecessary install calls, set timeouts for each job, and specify job name.
This commit is contained in:
+11
-20
@@ -3,12 +3,16 @@
|
|||||||
# Add steps that build, run tests, deploy, and more:
|
# Add steps that build, run tests, deploy, and more:
|
||||||
# https://aka.ms/yaml
|
# https://aka.ms/yaml
|
||||||
|
|
||||||
|
name: $(TeamProject)_$(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.rr)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: Build_PS_Win2016
|
- job: Build_PS_Win2016
|
||||||
|
timeoutInMinutes: 10
|
||||||
|
cancelTimeoutInMinutes: 2
|
||||||
pool:
|
pool:
|
||||||
vmImage: vs2017-win2016
|
vmImage: vs2017-win2016
|
||||||
steps:
|
steps:
|
||||||
- powershell: |
|
- script: |
|
||||||
pwsh -c '.\build.ps1 -Verbose'
|
pwsh -c '.\build.ps1 -Verbose'
|
||||||
displayName: 'Build and Test'
|
displayName: 'Build and Test'
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
@@ -19,22 +23,14 @@ jobs:
|
|||||||
displayName: 'Publish Test Results'
|
displayName: 'Publish Test Results'
|
||||||
|
|
||||||
- job: Build_PSCore_Ubuntu1604
|
- job: Build_PSCore_Ubuntu1604
|
||||||
|
timeoutInMinutes: 10
|
||||||
|
cancelTimeoutInMinutes: 2
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-16.04
|
vmImage: ubuntu-16.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
|
pwsh -c '.\build.ps1 -verbose'
|
||||||
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'
|
displayName: 'Build and Test'
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
inputs:
|
inputs:
|
||||||
testRunner: 'NUnit'
|
testRunner: 'NUnit'
|
||||||
@@ -43,19 +39,14 @@ jobs:
|
|||||||
displayName: 'Publish Test Results'
|
displayName: 'Publish Test Results'
|
||||||
|
|
||||||
- job: Build_PSCore_MacOS1013
|
- job: Build_PSCore_MacOS1013
|
||||||
|
timeoutInMinutes: 10
|
||||||
|
cancelTimeoutInMinutes: 2
|
||||||
pool:
|
pool:
|
||||||
vmImage: xcode9-macos10.13
|
vmImage: xcode9-macos10.13
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
brew update
|
pwsh -c '.\build.ps1 -verbose'
|
||||||
brew tap caskroom/cask
|
|
||||||
brew cask install powershell
|
|
||||||
displayName: 'Install PowerShell Core'
|
|
||||||
|
|
||||||
- script: |
|
|
||||||
pwsh -c '.\build.ps1'
|
|
||||||
displayName: 'Build and Test'
|
displayName: 'Build and Test'
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
inputs:
|
inputs:
|
||||||
testRunner: 'NUnit'
|
testRunner: 'NUnit'
|
||||||
|
|||||||
Reference in New Issue
Block a user