forked from RemyDuijkeren/NodaMoney
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
88 lines (75 loc) · 2.65 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#---------------------------------#
# general configuration #
#---------------------------------#
version: '{build}-{branch}'
os: Visual Studio 2015 RC
#---------------------------------#
# environment configuration #
#---------------------------------#
environment:
COVERALLS_REPO_TOKEN:
secure: Pn67B/ELnBY8YWJUBE4s4oIx98wS5NRLTOrP7AP/EiuU2l9brndSCF2cPL6+JUBe
#---------------------------------#
# build configuration #
#---------------------------------#
configuration: Release
nuget:
disable_publish_on_pr: true
before_build:
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
- nuget restore
- GitVersion /output buildserver /updateAssemblyInfo SolutionInfo.cs
build:
project: NodaMoney.sln
publish_nuget: true # package projects with .nuspec files and push to artifacts
verbosity: minimal
after_build:
- copy NodaMoney\bin\Release\NodaMoney.dll
- copy NodaMoney\bin\Release\NodaMoney.pdb
- copy NodaMoney\bin\Release\NodaMoney.xml
- 7z a -tzip NodaMoney.zip README.md LICENSE.txt NodaMoney.dll NodaMoney.pdb NodaMoney.xml
test_script:
- ps: >-
iex ((Resolve-Path "packages\OpenCover.*\OpenCover.Console.exe").ToString() + ' --% -register:user -filter:"+[NodaMoney*]*" -target:"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe" -targetargs:"/testcontainer:NodaMoney.UnitTests/bin/Release/NodaMoney.UnitTests.dll" -output:coverage.xml')
iex ((Resolve-Path "packages\coveralls.io.*\tools\coveralls.net.exe").ToString() + ' --opencover coverage.xml')
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: NodaMoney.zip
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
- provider: GitHub
release: $(APPVEYOR_REPO_TAG_NAME)
auth_token:
secure: y4qyCzCMLVH/DEwqh0WpXYryveAR7kuSSe25yd3PlLJms3dw7rB2gJpYc7HKW37y
artifact: NodaMoney.zip
draft: true
on:
branch: /^(\d+\.)?(\d+\.)?(\*|\d+)$/
- provider: NuGet
server: https://www.nuget.org/
api_key:
secure: cJV4lINlVi8J4NOZBAS5GnaaugKWWO0Zi5jCSKfkDOgs5mEpPDjIf9K0D8hB4bTU
skip_symbols: true
on:
branch: /^(\d+\.)?(\d+\.)?(\*|\d+)$/
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
- provider: Email
to:
on_build_success: true
on_build_failure: true
on_build_status_changed: true
- provider: Slack
auth_token:
secure: jhC+/1OwjVll6PTQLyyYTxb0oouvf83oOYxp40ZLnMrmNhU9Las0wwIQY64+JJIa
channel: general
on_build_success: true
on_build_failure: true
on_build_status_changed: true