mirror of
https://github.com/simh/simh.git
synced 2026-01-11 23:52:58 +00:00
APPVEYOR: Properly avoid saving binaries during Pull Request CI build
This commit is contained in:
parent
4692068925
commit
b6f02f3e0c
@ -15,7 +15,6 @@ matrix:
|
|||||||
|
|
||||||
cache:
|
cache:
|
||||||
- ../windows-build
|
- ../windows-build
|
||||||
- ../Development-Binaries
|
|
||||||
|
|
||||||
skip_commits:
|
skip_commits:
|
||||||
files:
|
files:
|
||||||
@ -116,14 +115,12 @@ on_success:
|
|||||||
# repository if the current build for this platform is one week or more
|
# repository if the current build for this platform is one week or more
|
||||||
# from the last saved build for this platform in the repository
|
# from the last saved build for this platform in the repository
|
||||||
if (((Get-Date -UFormat %s) -gt $recent_saved_commit_time + $oneweek) -and
|
if (((Get-Date -UFormat %s) -gt $recent_saved_commit_time + $oneweek) -and
|
||||||
("$env:APPVEYOR_REPO_NAME" -eq "simh/simh") -and
|
("$env:APPVEYOR_PULL_REQUEST_NUMBER" -eq "")) {
|
||||||
("$env:APPVEYOR_REPO_BRANCH" -eq "master")) {
|
|
||||||
("$platform Build") | Out-File -FilePath ../Save-Build-Results
|
("$platform Build") | Out-File -FilePath ../Save-Build-Results
|
||||||
}
|
}
|
||||||
Write-Output "Building repo '$env:APPVEYOR_REPO_NAME' branch: $env:APPVEYOR_REPO_BRANCH"
|
Write-Output "Building repo '$env:APPVEYOR_REPO_NAME' branch: $env:APPVEYOR_REPO_BRANCH"
|
||||||
if (("$env:APPVEYOR_REPO_NAME" -ne "simh/simh") -or
|
if ("$env:APPVEYOR_PULL_REQUEST_NUMBER" -ne "") {
|
||||||
("$env:APPVEYOR_REPO_BRANCH" -ne "master")) {
|
Write-Output "Skipping Saving binaries for pull request $env:APPVEYOR_PULL_REQUEST_NUMBER CI build"
|
||||||
Write-Output "Skipping Saving binaries for non simh/simh master branch CI build"
|
|
||||||
} else {
|
} else {
|
||||||
if ((Get-Date -UFormat %s) -lt $recent_saved_commit_time + $oneweek) {
|
if ((Get-Date -UFormat %s) -lt $recent_saved_commit_time + $oneweek) {
|
||||||
Write-Output "Skipping Saving binaries since the last one was saved " + (([System.DateTimeOffset]::FromUnixTimeSeconds($recent_saved_commit_time)).DateTime).ToString()
|
Write-Output "Skipping Saving binaries since the last one was saved " + (([System.DateTimeOffset]::FromUnixTimeSeconds($recent_saved_commit_time)).DateTime).ToString()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user