Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #529 from KirillOsenkov/binlog
Browse files Browse the repository at this point in the history
Save MSBuild .binlog as an AppVeyor artifact
  • Loading branch information
J Wyman authored Jan 23, 2018
2 parents a510b4e + bfdf2b5 commit b77f586
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
18 changes: 11 additions & 7 deletions Installer/Installer.proj
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@
<Name>Microsoft.Vsts.Authentication</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<FilesToCopy Include="$(SolutionDir)\Cli-CredentialHelper\$(InputPath)\*.*" />
<FilesToCopy Include="$(SolutionDir)\Cli-Askpass\$(InputPath)\git-askpass.exe" />
<FilesToCopy Include="$(SolutionDir)\LICENSE.TXT" />
<FilesToCopy Include="$(SolutionDir)\README.md" />
<FilesToCopy Include="$(ProjectDir)\Setup.iss" />
</ItemGroup>
<ItemGroup>
<FilesToSign Include="$(SigningTarget)">
<Authenticode>Microsoft</Authenticode>
Expand All @@ -88,6 +81,17 @@
</ItemGroup>
<Target Name="AfterBuild" AfterTargets="Build" />
<Target Name="Build" BeforeTargets="AfterBuild">
<MSBuild Projects="@(ProjectReference)" Targets="Build" />

<!-- need to declare the items after dependencies have built, so that glob enumeration happens after the files are produced-->
<ItemGroup>
<FilesToCopy Include="$(SolutionDir)\Cli-CredentialHelper\$(InputPath)\*.*" />
<FilesToCopy Include="$(SolutionDir)\Cli-Askpass\$(InputPath)\git-askpass.exe" />
<FilesToCopy Include="$(SolutionDir)\LICENSE.TXT" />
<FilesToCopy Include="$(SolutionDir)\README.md" />
<FilesToCopy Include="$(ProjectDir)\Setup.iss" />
</ItemGroup>

<MakeDir Directories="$(IntermediateOutputPath)" />
<MakeDir Directories="$(OutputPath)" />
<Copy SourceFiles="@(FilesToCopy)" DestinationFolder="$(IntermediateOutputPath)" />
Expand Down
11 changes: 10 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: "{build}"

image: Visual Studio 2017

clone_depth: 10

configuration:
Expand All @@ -11,10 +13,17 @@ before_build:
- nuget restore

build_script:
- msbuild "GitCredentialManager.sln" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /consoleloggerparameters:Verbosity=normal /nodeReuse:false /target:"Build" /property:Configuration="%configuration%";Platform="%platform%"
- msbuild "GitCredentialManager.sln" /bl:GitCredentialManager.binlog /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /consoleloggerparameters:Verbosity=normal /m /nodeReuse:false /target:"Build" /property:Configuration="%configuration%";Platform="%platform%"

cache:
- packages -> **\packages.config

matrix:
fast_finish: true

artifacts:
- path: GitCredentialManager.binlog
name: MSBuild Log

on_failure:
- appveyor PushArtifact GitCredentialManager.binlog

0 comments on commit b77f586

Please sign in to comment.