From 9928a7d0e54615b0823cea427d27000f0b1b3119 Mon Sep 17 00:00:00 2001 From: Justin Dearing Date: Fri, 10 Aug 2018 11:54:45 -0400 Subject: [PATCH] I think this buils and publishes artifacts --- appveyor.yml | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index e348088..c92e540 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,30 +1,25 @@ version: 1.0.{build} image: Visual Studio 2017 -build_script: +build: TestConsoleApp1.sln +after_build: - ps: >- - if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) - { - Import-Module .\tools\MSBLOC.Posh\MSBuildLogOctokitChecker.psm1 - } + Import-Module .\tools\MSBLOC.Posh\MSBuildLogOctokitChecker.psd1 - msbuild TestConsoleApp1.sln --% /bl:output.binlog /verbosity:minimal + $oldLocation = (Get-Location).Path + Get-location (Get-Item -Path ".\").FullName + $newLocation = (Get-Location).Path + + Write-Host "Changed Location from $($oldLocation) to $($newLocation)" if (! $?) { echo "Build Error" - Push-AppveyorArtifact output.binlog -Type File - - if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) - { - Send-MsbuildLogAppveyor output.binlog - } - + Send-MsbuildLogAppveyor output.binlog exit -1 } + + $binLogPath = (Get-Item -Path ".\").FullName + "\output.binlog" - if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) - { - Send-MsbuildLogAppveyor output.binlog - } + Send-MsbuildLogAppveyor $binLogPath artifacts: +- path: output.log - path: output.binlog - name: File \ No newline at end of file