Skip to content

Commit

Permalink
Add appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dail8859 committed Feb 24, 2018
1 parent 21fd32a commit 10f1a37
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# SurroundSelection

[![Build status](https://ci.appveyor.com/api/projects/status/github/dail8859/SurroundSelection?branch=master&svg=true)](https://ci.appveyor.com/project/dail8859/SurroundSelection/branch/master)

Notepad++ plugin to automatically surround the selection in quotes/brackets/parenthesis/etc. This can also be used on multiple or rectangular selections.

**Note:** This is still in early development. It has not been fully tested with non-US keyboard layouts.
Expand Down
62 changes: 62 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
version: 1.1.0.{build}
image: Visual Studio 2015

platform:
- x64
- Win32

configuration:
- 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%

build:
parallel: true
verbosity: minimal

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

after_build:
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-
if ($env:PLATFORM -eq "x64") {
Push-AppveyorArtifact "bin\$($env:CONFIGURATION)_$($env:PLATFORM)\SurroundSelection_64.dll" -FileName SurroundSelection_64.dll
}
if ($env:PLATFORM -eq "Win32" ) {
Push-AppveyorArtifact "bin\$($env:CONFIGURATION)_$($env:PLATFORM)\SurroundSelection.dll" -FileName SurroundSelection.dll
}
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
if ($env:PLATFORM -eq "x64"){
$ZipFileName = "SurroundSelection_$($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 = "SurroundSelection_$($env:APPVEYOR_REPO_TAG_NAME).zip"
7z a $ZipFileName "$($env:APPVEYOR_BUILD_FOLDER)\bin\$($env:CONFIGURATION)_$($env:PLATFORM)\*.dll"
}
}
artifacts:
- path: SurroundSelection*.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

0 comments on commit 10f1a37

Please sign in to comment.