mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[internal] improve AppVeyor build handling
* Also fix some typos
This commit is contained in:
parent
faebe1040f
commit
16cddefff9
4 changed files with 26 additions and 17 deletions
29
appveyor.yml
29
appveyor.yml
|
@ -1,15 +1,9 @@
|
|||
os: Visual Studio 2017
|
||||
|
||||
init:
|
||||
# Set the AppVeyor build version number to our tag or, if untagged, to the commit hash
|
||||
# See https://github.com/appveyor/ci/issues/691
|
||||
# Also include the build number, to distinguish between rebuilds of the same commit
|
||||
- ps: |
|
||||
if ($env:APPVEYOR_REPO_TAG -eq "true") {
|
||||
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME)_#$env:APPVEYOR_BUILD_NUMBER"
|
||||
} else {
|
||||
Update-AppveyorBuild -Version "dev-$($env:APPVEYOR_REPO_COMMIT.Substring(0,8))_#$env:APPVEYOR_BUILD_NUMBER"
|
||||
}
|
||||
max_jobs: 4
|
||||
|
||||
# May choose to enable the following if we get tired of seeing double AppVeyor builds for tagged and untagged
|
||||
# skip_non_tags: true
|
||||
|
||||
skip_commits:
|
||||
# Don't run AppVeyor for commits that only modify resource or non-code files
|
||||
|
@ -51,6 +45,21 @@ environment:
|
|||
COMPILER: Coverity
|
||||
PLATFORM: x86_32
|
||||
|
||||
init:
|
||||
# Set the AppVeyor build version number to our tag or, if untagged, to the commit hash
|
||||
# See https://github.com/appveyor/ci/issues/691
|
||||
# Also include the build number, to distinguish between rebuilds of the same commit
|
||||
- ps: |
|
||||
if ($env:APPVEYOR_REPO_TAG -eq "true") {
|
||||
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME)_#$env:APPVEYOR_BUILD_NUMBER";
|
||||
} else {
|
||||
Update-AppveyorBuild -Version "dev-$($env:APPVEYOR_REPO_COMMIT.Substring(0,8))_#$env:APPVEYOR_BUILD_NUMBER";
|
||||
if ("$env:APPVEYOR_REPO_NAME" -eq "pbatard/rufus" -and "$env:APPVEYOR_REPO_BRANCH" -eq "master") {
|
||||
Write-Output "Not running dev-build since we expect a tagged commit.";
|
||||
Exit-AppVeyorBuild;
|
||||
}
|
||||
}
|
||||
|
||||
build:
|
||||
project: rufus.sln
|
||||
parallel: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue