Skip to content

Commit

Permalink
Update appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dail8859 committed Jun 30, 2019
1 parent c69fcc2 commit 316cff4
Showing 1 changed file with 41 additions and 36 deletions.
77 changes: 41 additions & 36 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,61 @@
version: 0.4.3.{build}
image: Visual Studio 2015
image: Visual Studio 2017

platform:
- x64
- Win32
- x64
- Win32

configuration:
- Release
- Debug
- Release
- Debug

install:
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="Win32" set archi=x86
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="x64" set build_platform=x64

- if "%platform%"=="Win32" set archi=x86
- if "%platform%"=="Win32" set build_platform=Win32

- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%

build:
parallel: true
verbosity: minimal
parallel: true
verbosity: minimal

build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- msbuild DoxyIt.sln /p:configuration="%configuration%" /p:platform="%platform%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cd "%APPVEYOR_BUILD_FOLDER%"
- msbuild DoxyIt.sln /p:Configuration="%configuration%" /p:Platform="%build_platform%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

after_build:
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-
Push-AppveyorArtifact "bin\$($env:CONFIGURATION)_$($env:PLATFORM)\DoxyIt.dll" -FileName DoxyIt.dll
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
if ($env:PLATFORM -eq "x64"){
$ZipFileName = "DoxyIt_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
7z a $ZipFileName "$($env:APPVEYOR_BUILD_FOLDER)\bin\$($env:CONFIGURATION)_$($env:PLATFORM)\*.dll"
}
if ($env:PLATFORM -eq "Win32"){
$ZipFileName = "DoxyIt_$($env:APPVEYOR_REPO_TAG_NAME).zip"
7z a $ZipFileName "$($env:APPVEYOR_BUILD_FOLDER)\bin\$($env:CONFIGURATION)_$($env:PLATFORM)\*.dll"
}
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-
$BuildPath = "$($env:APPVEYOR_BUILD_FOLDER)\bin\$($env:CONFIGURATION)_$($env:BUILD_PLATFORM)"
Push-AppveyorArtifact "$($BuildPath)\DoxyIt.dll" -FileName DoxyIt.dll
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
if ($env:BUILD_PLATFORM -eq "x64"){
$ZipFileName = "DoxyIt_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
}
if ($env:BUILD_PLATFORM -eq "Win32"){
$ZipFileName = "DoxyIt_$($env:APPVEYOR_REPO_TAG_NAME).zip"
}
7z a $ZipFileName "$($BuildPath)\DoxyIt.dll"
}
artifacts:
- path: DoxyIt*.zip
name: releases

deploy:
provider: GitHub
auth_token:
secure: qrw+nu8dQKFLG+lNmky6buHsvHFwlibAai0r0aJ3MYbyBniONVxvgnmyx37bPh44
artifact: releases
draft: true
prerelease: false
force_update: true
on:
appveyor_repo_tag: true
configuration: Release
provider: GitHub
auth_token:
secure: qrw+nu8dQKFLG+lNmky6buHsvHFwlibAai0r0aJ3MYbyBniONVxvgnmyx37bPh44
artifact: releases
draft: true
prerelease: false
force_update: true
on:
appveyor_repo_tag: true
configuration: Release

0 comments on commit 316cff4

Please sign in to comment.