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

Save MSBuild .binlog as an AppVeyor artifact #529

Merged
merged 5 commits into from
Jan 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions Installer/Installer.proj
Original file line number Diff line number Diff line change
@@ -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>
@@ -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)" />
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:
@@ -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