Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
I think this buils and publishes artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy1981 committed Aug 10, 2018
1 parent d3efb5e commit 9928a7d
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9928a7d

Please sign in to comment.