-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
60 lines (47 loc) · 1.53 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
version: 2.4.0.{build}
skip_tags: false
# Operating system (build VM template)
os: Visual Studio 2015
branches:
# blacklist gh-pages, since the documentation branch shouldn't be built
except:
- gh-pages
init:
- ps: $env:releaseVersion = "2.4.0"
- ps: $env:packageVersion = if (Test-Path env:\APPVEYOR_REPO_TAG_NAME) { "$env:APPVEYOR_REPO_TAG_NAME" } else { "{0}-aInternalBuild{1:000}" -f $env:releaseVersion, [System.Int32]::Parse($env:APPVEYOR_BUILD_NUMBER) }
assembly_info:
patch: true
file: VersionInfo.cs
assembly_version: "$(releaseVersion)"
assembly_file_version: "{version}"
assembly_informational_version: "$(packageVersion)"
nuget:
account_feed: true
platform: Any CPU
configuration: Release
before_build:
- nuget restore
build:
project: CodeOnlyStoredProcedure.sln
parallel: true
verbosity: quiet
test:
assemblies:
- CodeOnlyTests.dll
- CodeOnlyTests-NET40.dll
# run smoke tests, and create the nuget package artifacts
after_test:
- .\SmokeTests\bin\Release\SmokeTests.exe
- .\SmokeTests-NET40\bin\Release\SmokeTests-NET40.exe
- ps: nuget pack CodeOnlyStoredProcedures.nuspec -Symbols -NonInteractive -Verbosity detailed -Version $env:packageVersion
artifacts:
- path: '*.nupkg'
deploy:
- provider: NuGet
on:
branch: master
appveyor_repo_tag: true # Now that I'm using github pull requests, only tags should be released to nuget
api_key:
secure: YpmJQ9N6F0dfai0xFAoerzB7nruq9NOlhDquhAliwy5cS2A87wU7U+X4Q5eH8vyx
skip_symbols: false
artifact: /.*\.nupkg/