Update azure-pipelines.yml config (#312)
This commit is contained in:
Родитель
9b1b4d9d7d
Коммит
41b214c8c6
|
@ -10,13 +10,12 @@ pool:
|
|||
vmImage: 'vs2017-win2016'
|
||||
|
||||
steps:
|
||||
- script: echo Hello, world!
|
||||
displayName: 'Run a one-line script'
|
||||
- task: NuGetToolInstaller@0
|
||||
inputs:
|
||||
checkLatest: true
|
||||
- pwsh: |
|
||||
Get-Command mvn
|
||||
displayName: 'Installing Maven'
|
||||
- pwsh: |
|
||||
$buildNumber = 0
|
||||
if($env:APPVEYOR_REPO_TAG -eq "true") {
|
||||
|
@ -28,7 +27,6 @@ steps:
|
|||
Write-Host “git tag not found. Setting package suffix to '$buildNumber'"
|
||||
}
|
||||
.\package.ps1 -buildNumber $buildNumber
|
||||
|
||||
displayName: 'Executing build script'
|
||||
- task: CopyFiles@2
|
||||
inputs:
|
||||
|
@ -36,6 +34,7 @@ steps:
|
|||
Contents: '*.nupkg'
|
||||
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||
CleanTargetFolder: true
|
||||
displayName: 'Copying files for artifacts'
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
||||
|
@ -46,8 +45,11 @@ steps:
|
|||
$proc = start-process -filepath $(System.DefaultWorkingDirectory)\Azure.Functions.Cli\func.exe -WorkingDirectory "$(System.DefaultWorkingDirectory)\endtoendtests\target\azure-functions\azure-functions-java-endtoendtests" -ArgumentList "host start" -RedirectStandardOutput "output.txt" -RedirectStandardError "error.txt" -PassThru
|
||||
# wait for host to start
|
||||
Start-Sleep -s 30
|
||||
displayName: 'Setting tests up'
|
||||
- pwsh: |
|
||||
.\run-tests.ps1
|
||||
continueOnError: true
|
||||
displayName: 'Running tests'
|
||||
- pwsh: |
|
||||
Stop-Process -Id $proc.Id -Erroraction Ignore
|
||||
# Output standard input stream and error stream
|
||||
|
|
Загрузка…
Ссылка в новой задаче