-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
46 lines (38 loc) · 1.35 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
version: 0.1.8.{build}
before_build:
- nuget restore Loyc.Binary.sln
build_script:
# First, set some environment variables.
# SEMVER is set manually. Not sure how this can be automated.
- set SEMVER=0.1.8
- echo %APPVEYOR_REPO_TAG%
# Build packages as SEMVER-ci{build}
- ps: if ($env:APPVEYOR_REPO_TAG -eq $True) { $env:PKG_VERSION = $env:SEMVER; } else { $env:PKG_VERSION = "$($env:SEMVER)-ci$($env:APPVEYOR_BUILD_NUMBER)"; }
- echo %PKG_VERSION%
# Build the Loyc.Binary library in release mode.
- msbuild /p:Configuration=Release Loyc.Binary.sln
after_build:
# Package the Loyc.Binary library
- nuget pack -Version %PKG_VERSION% Loyc.Binary.nuspec
# Package ends up in Loyc.Binary.$SEMVER.nupkg
test_script:
- Loyc.Binary.Tests\bin\Release\Loyc.Binary.Tests.exe
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
artifacts:
- path: '*.nupkg'
name: nupkgs
deploy:
- provider: NuGet
server:
api_key:
secure: vIYC0UO8DFL2HXrIu20ZQs1NR31SvGZWioDBgXzyMwJEd5dySh5peABsrwWvKzU1
skip_symbols: true
artifact: /.*\.nupkg/
on:
branch: master # Release from master branch only.
appveyor_repo_tag: true # Deploy on tag push only.