Skip to content

Commit

Permalink
[CI] Fixes indentation in config
Browse files Browse the repository at this point in the history
Bug introduced in  bd5b178
  • Loading branch information
atruskie committed May 21, 2018
1 parent bd5b178 commit 8cff73c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,19 @@ environment:
init:
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- echo Starting Build
#- git lfs install --skip-smudge

before_build:
# Download fresh lfs assets
- git lfs pull
# Determine whether or not we should tag and release
# if the last tag hash matches the current build hash then we should not duplicate a release
- ps: |
$tags = git log --tags -n 10 --no-walk --format="%H %D"
Write-Output ("Recent tags:`n" + ($tags | Out-String))
$env:TAG_NOT_PREVIOUSLY_RELEASED=($tags -like "$env:APPVEYOR_REPO_COMMIT*").Length -eq 0
$env:RELEASE_COMMIT = $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED -ilike "*``[release``]*"
$env:SHOULD_RELEASE = ($env:RELEASE_COMMIT -ieq "true") -or ($env:APPVEYOR_SCHEDULED_BUILD -and ($env:TAG_NOT_PREVIOUSLY_RELEASED -ieq "true"))
ls env:* -Include SHOULD*,APPVEYOR_SCHEDULED_BUILD*,APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED*,RELEASE_COMMIT,TAG_NOT_PREVIOUSLY_RELEASED
$tags = git log --tags -n 10 --no-walk --format="%H %D"
Write-Output ("Recent tags:`n" + ($tags | Out-String))
$env:TAG_NOT_PREVIOUSLY_RELEASED=($tags -like "$env:APPVEYOR_REPO_COMMIT*").Length -eq 0
$env:RELEASE_COMMIT = $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED -ilike "*``[release``]*"
$env:SHOULD_RELEASE = ($env:RELEASE_COMMIT -ieq "true") -or ($env:APPVEYOR_SCHEDULED_BUILD -and ($env:TAG_NOT_PREVIOUSLY_RELEASED -ieq "true"))
ls env:* -Include SHOULD*,APPVEYOR_SCHEDULED_BUILD*,APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED*,RELEASE_COMMIT,TAG_NOT_PREVIOUSLY_RELEASED
# Restore packages
- nuget restore
# Debugging a dirty flag in build version
Expand Down

0 comments on commit 8cff73c

Please sign in to comment.