-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
70 lines (57 loc) · 2.13 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: 1.0.{build}
image: Visual Studio 2015
platform:
- AnyCPU
#- x86
- x64
configuration:
- Debug
- Release
install:
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
build:
parallel: true # enable MSBuild parallel builds
verbosity: minimal
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%\BracketsCheck"
- msbuild BracketsCheck.csproj /m /p:configuration="%configuration%" /p:platform="%platform%"
after_build:
- cd "%APPVEYOR_BUILD_FOLDER%\BracketsCheck"
- ps: >-
if ($env:PLATFORM -eq "x64") {
Push-AppveyorArtifact "bin\$($env:PLATFORM)\$($env:CONFIGURATION)\BracketsCheck.dll" -FileName BracketsCheck.dll
}
if ($env:PLATFORM -eq "x86" ) {
Push-AppveyorArtifact "bin\$($env:PLATFORM)\$($env:CONFIGURATION)\BracketsCheck.dll" -FileName BracketsCheck.dll
}
if ($env:PLATFORM -eq "AnyCPU" ) {
Push-AppveyorArtifact "bin\$($env:CONFIGURATION)\BracketsCheck.dll" -FileName BracketsCheck.dll
}
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
if($env:PLATFORM -eq "x64"){
$ZipFileName = "NppHash_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
7z a $ZipFileName bin\$env:PLATFORM\$env:CONFIGURATION\BracketsCheck.dll
}
if($env:PLATFORM -eq "x86"){
$ZipFileName = "NppHash_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
7z a $ZipFileName bin\$env:PLATFORM\$env:CONFIGURATION\BracketsCheck.dll
}
if($env:PLATFORM -eq "AnyCPU"){
$ZipFileName = "NppHash_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
7z a $ZipFileName bin\$env:CONFIGURATION\BracketsCheck.dll
}
}
artifacts:
- path: BracketsCheck_*.zip
name: releases
deploy:
provider: GitHub
auth_token:
secure: !!TODO, see https://www.appveyor.com/docs/deployment/github/#provider-settings!!
artifact: releases
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true
configuration: Release