Skip to content

Commit 3e69885

Browse files
committed
(GH-32) Configure execution for scheduled build
- When running a scheduled build, only do a subset of the build - NOTE: This will fail, until this issue is resolved: csMACnz/coveritypublisher#4
1 parent 2e66868 commit 3e69885

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

BuildScripts/build.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ if($Help){
2323
return
2424
}
2525

26-
if(Test-Path -Path env:\APPVEYOR) {
27-
if($env:APPVEYOR_REPO_BRANCH -eq "develop" -And $env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null) {
26+
if(Test-Path -Path env:\APPVEYOR) {
27+
if ($env:APPVEYOR_SCHEDULED_BUILD -ne "True") {
28+
Write-Output "Since this is a scheduled build, simply run a build, with deployment of Coverity Artifacts, but no other deployment"
29+
invoke-psake "$here/default.ps1" -task RebuildSolution -properties @{ 'config'='Release'; }
30+
} elseif($env:APPVEYOR_REPO_BRANCH -eq "develop" -And $env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null) {
2831
Write-Output "Since we are on develop branch with no pull request number, we are ready to deploy to Develop MyGet Feed"
2932
invoke-psake "$here/default.ps1" -task DeployDevelopSolutionToMyGet -properties @{ 'config'='Release'; }
3033
} elseif($env:APPVEYOR_REPO_BRANCH -eq "develop" -And $env:APPVEYOR_PULL_REQUEST_NUMBER -ne $null) {

BuildScripts/default.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ Task -Name BuildSolution -Depends __RemoveBuildArtifactsDirectory, __VerifyConfi
548548

549549
& $publishCoverityExe compress -o $buildArtifactsDirectory\coverity.zip -i $buildArtifactsDirectory\cov-int;
550550

551-
& $publishCoverityExe publish -z $buildArtifactsDirectory\coverity.zip -r $env:APPVEYOR_REPO_NAME -t $env:CoverityProjectToken -e $env:CoverityEmailDistribution -d "AppVeyor scheduled build." --codeVersion $script:version;
551+
& $publishCoverityExe publish -z $buildArtifactsDirectory\coverity.zip -r GitHubReleaseManager -t $env:CoverityProjectToken -e $env:CoverityEmailDistribution -d "AppVeyor scheduled build." --codeVersion $script:version;
552552
}
553553

554554
$styleCopResultsFiles = Get-ChildItem $buildArtifactsDirectory -Filter "StyleCop*.xml"

0 commit comments

Comments
 (0)