Refactors `travis.ps1`. Important for maintainers: I removed the webhook and badge stuff as neither exist anymore. I also merged the build and test phase with the bootstrap phase.
11 lines
578 B
YAML
11 lines
578 B
YAML
steps:
|
|
- powershell: |
|
|
Import-Module $(Build.SourcesDirectory)/build.psm1 -Force
|
|
New-NugetConfigFile -NugetFeedUrl $(AzDevOpsFeed) -UserName $(AzDevOpsFeedUserName) -ClearTextPAT $(AzDevOpsFeedPAT) -FeedName AzDevOpsFeed -Destination $(Build.SourcesDirectory)/src/Modules
|
|
|
|
if(-not (Test-Path "$(Build.SourcesDirectory)/src/Modules/nuget.config"))
|
|
{
|
|
throw "nuget.config is not created"
|
|
}
|
|
displayName: 'Add nuget.config for Azure DevOps feed for PSGallery modules'
|
|
condition: and(succeededOrFailed(), ne(variables['AzDevOpsFeed'], ''))
|