diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-12 08:49:15 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-12 08:50:21 -0700 |
| commit | d93c2101475ce6fee27f8188cb194332f1f4ee8d (patch) | |
| tree | 6ec9a2247863e8ce390f78dc93ecbb38cba3e564 /appveyor.yml | |
| parent | 62687cd285f675d862c132270d05752afa56d87e (diff) | |
AppVeyor: Try to fix errors in `appveyor.yml`
- Also add link to build "badge" so that I can more easily watch build status.
Diffstat (limited to 'appveyor.yml')
| -rw-r--r-- | appveyor.yml | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/appveyor.yml b/appveyor.yml index 73f976d66..3dd3d93fb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,32 +2,32 @@ # Try to set AppVeyord build "version" to something reasonable, # based on what we are trying to build. init: - - ps: >- - if ($end:APPVEYOR_REPO_TAG -eq "true") - { - # If we are building from a tag in the repository, - # then use the tag name as the start of the build version - $versionName = "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))" - } - else if($env:APPVEYOR_PULL_REQUEST_NUMBER) - { - # Otherwise, if we are building for a pull request, - # then use the pull request number to name our build version - $versionName = "pr$env:APPVEYOR_PULL_REQUEST_NUMBER" - } - else - { - # Otherwise, just set a build name based on the - # branch that we are building against - $versionName = "$env:APPVEYOR_REPO_BRANCH" - } - # Finally, we set the AppVeyor build version to use our version - # name with the build number appended. - # - # The string "appveyor" is being included before the build number - # in case we need to differentiate builds being made with different - # continuous integration providers. - Update-AppveyorBuild -Version "$versionName+appveyor.$env:APPVEYOR_BUILD_NUMBER" + - ps: | + if ($env:APPVEYOR_REPO_TAG -eq "true") + { + # If we are building from a tag in the repository, + # then use the tag name as the start of the build version + $versionName = "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))" + } + else if($env:APPVEYOR_PULL_REQUEST_NUMBER) + { + # Otherwise, if we are building for a pull request, + # then use the pull request number to name our build version + $versionName = "pr$env:APPVEYOR_PULL_REQUEST_NUMBER" + } + else + { + # Otherwise, just set a build name based on the + # branch that we are building against + $versionName = "$env:APPVEYOR_REPO_BRANCH" + } + # Finally, we set the AppVeyor build version to use our version + # name with the build number appended. + # + # The string "appveyor" is being included before the build number + # in case we need to differentiate builds being made with different + # continuous integration providers. + Update-AppveyorBuild -Version "$versionName+appveyor.$env:APPVEYOR_BUILD_NUMBER" # Our solution file is currently set up for VS2015 image: Visual Studio 2015 |
