Skip to content

Commit

Permalink
I hate appveyor
Browse files Browse the repository at this point in the history
Copy appveyor from DoxyIt
  • Loading branch information
dail8859 committed Jan 7, 2020
1 parent 72f7222 commit 06481bf
Showing 1 changed file with 40 additions and 35 deletions.
75 changes: 40 additions & 35 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,60 @@ version: 1.4.0.{build}
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\2017\Community\VC\Auxiliary\Build\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 BetterMultiSelection.sln /p:configuration="%configuration%" /p:platform="%platform%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cd "%APPVEYOR_BUILD_FOLDER%"
- msbuild BetterMultiSelection.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)\BetterMultiSelection.dll" -FileName BetterMultiSelection.dll
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
if ($env:PLATFORM -eq "x64"){
$ZipFileName = "BetterMultiSelection_$($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 = "BetterMultiSelection_$($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)\BetterMultiSelection.dll" -FileName BetterMultiSelection.dll
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
if ($env:BUILD_PLATFORM -eq "x64"){
$ZipFileName = "BetterMultiSelection_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
}
if ($env:BUILD_PLATFORM -eq "Win32"){
$ZipFileName = "BetterMultiSelection_$($env:APPVEYOR_REPO_TAG_NAME).zip"
}
7z a $ZipFileName "$($BuildPath)\BetterMultiSelection.dll"
}
artifacts:
- path: BetterMultiSelection*.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 06481bf

Please sign in to comment.