-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
180 lines (150 loc) · 5.46 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
version: 3.2.0.{build}-beta
platform:
- x64
- Any CPU
configuration:
- Release
#- Debug
# Start builds on tags only (GitHub and BitBucket)
skip_non_tags: false
matrix:
fast_finish: true
allow_failures:
- platform: x86
configuration: Debug
- platform: x64
configuration: Debug
# branches to build
branches:
only:
- master
- production
- experimental
except:
- gh-pages
image: Visual Studio 2015
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
environment:
access_token:
secure: MILj/WXEknAZr6e4pF1bGol5qz4AWQONB1G+mAcKx2x0NPOseKNe23oLNffH7pcH
#nuget_id: "Core.Cast-Transform-Convert"
install:
- cmd: echo "Install started..."
- cmd: git checkout %APPVEYOR_REPO_BRANCH%
nuget:
account_feed: true
project_feed: true
disable_publish_on_pr: true
before_package:
- cmd: echo "Packaging now!"
before_build:
- cmd: echo "Before Build Environmental variables..."
- ps: 'ls env:'
#- cmd: git fetch origin master:master
#- cmd: git pull
- ps: git log --graph --all --shortstat --summary --date=relative --no-color --pretty='format:%x09 %ad %d %s (%aN)' | Write-Host
- cmd: nuget restore ".NET Portable TypeCast.sln"
build:
parallel: false
project: ".NET Portable TypeCast.sln"
publish_nuget: true
publish_nuget_symbols: true
include_nuget_references: true
verbosity: normal
after_build:
- cmd: echo "After Build Environmental variables..."
- ps: 'ls env:'
artifacts:
- path: deploy\*.zip
name: TypeCastRelease
# find all release NuGet packages recursively
- path: deploy\Core.Cast-Transform-Convert*.nupkg
name: NuGetPackage
after_test:
- cmd: copy README.md %APPVEYOR_BUILD_FOLDER%\TypeCast\bin\README.md
- ps: git log --graph --all --shortstat --summary --date=relative --no-color --pretty='format:%x09 %ad %d %s (%aN)' | Out-File ".\CHANGELOG.txt"
- cmd: copy .\CHANGELOG.txt %APPVEYOR_BUILD_FOLDER%\TypeCast\bin\CHANGELOG.txt
- ps: if($env:Platform -eq "x64") { copy TypeCast\bin\x64\**\*.* $env:APPVEYOR_BUILD_FOLDER\TypeCast\bin\ }
- ps: if($env:Platform -eq "x86") { copy TypeCast\bin\x86\**\*.* $env:APPVEYOR_BUILD_FOLDER\TypeCast\bin\ }
- ps: if($env:Platform -eq "Any CPU") { copy TypeCast\bin\**\*.* $env:APPVEYOR_BUILD_FOLDER\TypeCast\bin\ }
#- cmd: IF "%Platform%" == "Any CPU" IF (copy TypeCast\bin\**\*.* %APPVEYOR_BUILD_FOLDER%\TypeCast\bin\)
- cmd: mkdir deploy
- ps: .\NuGet\pack.ps1 "TypeCast" "Core.TypeCast" "Core.Cast-Transform-Convert"
- cmd: copy .\*.nupkg %APPVEYOR_BUILD_FOLDER%\TypeCast\bin\
- cmd: copy .\*.nupkg deploy\
- cmd: 7z a deploy\DotNetCastConvertTransform.zip %APPVEYOR_BUILD_FOLDER%\TypeCast\bin\*.*
#- cmd: appveyor PushArtifact deploy\DotNetCastConvertTransform.zip
#- cmd: appveyor PushArtifact NuGetPackage
#- bash <(curl -s https://codecov.io/bash)
#on_success:
# - cmd: nuget push <your-package.nupkg> -ApiKey <your-api-key> -Source <feed-url>
# - git config --global credential.helper store
# - git config --global push.default matching
# - ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
# - git config --global user.email "[email protected]"
# - git config --global user.name "Lo Sauer"
# - git tag "{version}"
# - git push origin --tags
deploy:
# Deploy to GitHub Releases
- provider: GitHub
#release: TypeCast-v$(APPVEYOR_BUILD_VERSION)
description: 'TypeCast uncompromising Conversions'
auth_token:
secure: "MILj/WXEknAZr6e4pF1bGol5qz4AWQONB1G+mAcKx2x0NPOseKNe23oLNffH7pcH"
artifact: TypeCastRelease # upload artifact package to release assets
draft: true
prerelease: false
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only
# Deploying to NuGet feed
- provider: NuGet
#server: https://my.nuget.server/feed
api_key:
secure: jGbn/mXu3fLPmAuMgXcRMVAY7GAt3d5AKn5Aa+6ac5sNZdoW64RHv3LeUK1nz/Zg
skip_symbols: false
#symbol_server: https://your.symbol.server/feed
artifact: NuGetPackage
- provider: NuGet # deploy to MyGet.org
server: https://www.myget.org/F/dotnet-portable-cast-convert-transform/api/v2/package
api_key:
secure: ApXKqiEzjHPtRTcD3WcFz2y0SY5SEscQQejU6DnEUuv7pct/hGg9rLb5QqHAqP7P
skip_symbols: false
symbol_server: https://www.myget.org/F/dotnet-portable-cast-convert-transform/api/v2/package
artifact: NuGetPackage
notifications:
- provider: Email
to:
on_build_success: false
on_build_failure: true
on_build_status_changed: false
- provider: Webhook
url: https://webhooks.gitter.im/e/23956b01699c1e6d3f8f
method: GET
#experimental:
- provider: GitHubPullRequest
auth_token:
secure: JEasSfnCSjLkQbLg5yWenG/o1oAS5GSUWfOzEu4YswsNb/zFRRaex7CfLbMQbEUh
template: "{{#passed}}:white_check_mark:{{/passed}}{{#failed}}:x:{{/failed}} [Build {{&projectName}} {{buildVersion}} {{status}}]({{buildUrl}}) (commit {{commitUrl}} by @{{&commitAuthorUsername}})"
skip_commits:
# Regex for matching commit message
message: /Update.*\.(md)/
files:
- bin/Release/**/*
- bin/Debug/**/*
only_commits:
files:
- Examples/*
- '**/*.cs'
- '**/*.csproj'
- '**/*.config'
- '**/*.sln'
- '**/*.ps1'
- appveyor.yml