Skip to content

Commit

Permalink
Uses $Env:KBFRZ71_VERSION environment variable instead of modifying t…
Browse files Browse the repository at this point in the history
…hat of AppVeyor.
  • Loading branch information
Maxime Labelle committed May 29, 2019
1 parent 2914025 commit bf5d3fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ branches:
init:
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq "true") {
$requestedVersion = "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))"
Update-AppveyorBuild -Version $requestedVersion
$Env:KBFRZ71_VERSION = "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))"
} else {
$Env:KBFRZ71_VERSION = ""
}
before_build:
Expand All @@ -22,7 +23,7 @@ build_script:
docker run `
--rm `
--mount "type=bind,source=C:\projects\optimized-azerty-win\bin,target=C:\sources" `
--env "KBFRZ71_VERSION=1.0.3.40" `
--env "KBFRZ71_VERSION=$Env:KBFRZ71_VERSION" `
private/msklc:1.4 > build.log
- ps: |
$content = (Get-Content -Path ".\build.log" -Raw)
Expand Down

0 comments on commit bf5d3fc

Please sign in to comment.