forked from TechIsCool/StripHeaders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
57 lines (49 loc) · 1.45 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
version: 1.0.{build}
image: Visual Studio 2017
platform: Both
configuration: Release
before_build:
- ps: |-
$Version = $(Get-Content .\VERSION -Raw)
Set-Item -Path ENV:PRODUCTVERSION -Value $Version
"#define BINVERSION $($Version.Replace(".",","))`n#define STRVERSION `"$Version`"" | `
Out-File `
-FilePath NativeCodeModule/version.h
build:
project: StripHeaders.sln
verbosity: normal
after_build:
- ps: |-
cd chocolatey-package
./stripheaders.ps1
choco pack output/stripheaders.nuspec
artifacts:
- path: Installer\bin\**\Release\*.msi
name: msi
- path: chocolatey-package\*.nupkg
name: nupkg
- path: chocolatey-package\CHECKSUM.txt
name: checksum
test_script:
- ps: cinst stripheaders --version $env:PRODUCTVERSION -fdvy -source "$pwd;http://chocolatey.org/api/v2/"
- ps: cuninst -fdvy stripheaders
- ps: cinst stripheaders --version $env:PRODUCTVERSION -fdvy --x86 -source "$pwd;http://chocolatey.org/api/v2/"
- ps: cuninst -fdvy stripheaders
deploy:
- provider: GitHub
auth_token:
secure: k8FhXZAeG1KcCv5llCgSN3aO7SFH/u3B+xMggvzMIBlPL0rjvCNK4n62SZw+F/1i
artifact: msi,nupkg,checksum
draft: false
prerelease: false
on:
branch: master
appveyor_repo_tag: true
- provider: NuGet
server: https://chocolatey.org/
api_key:
secure: hIJKQ1Spg7Z+jgBznNcdpXtxyTRWBAFQGAukgMK7rtPQQtNTLXJNKFbKnZH8g33A
artifact: nupkg
on:
branch: master
appveyor_repo_tag: true