-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
57 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
[*] | ||
charset=utf-8 | ||
end_of_line=lf | ||
indent_style=space | ||
max_line_length = 160 | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
max_line_length = 180 | ||
insert_final_newline = true | ||
|
||
[*.{cs}] | ||
[*.cs] | ||
indent_size = 4 | ||
insert_final_newline = true | ||
|
||
# Code files | ||
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] | ||
indent_style=space | ||
indent_size=2 | ||
[*.csproj] | ||
indent_size = 2 | ||
|
||
# Xml config files | ||
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] | ||
[{*.yml,*.yaml}] | ||
indent_size = 2 | ||
|
||
# JSON files | ||
[*.json] | ||
indent_size = 2 | ||
|
||
# .NET code style settings: | ||
[*.{cs,vb}] | ||
# Sort using and Import directives with System.* appearing first | ||
[{*.sh, *.ps1}] | ||
indent_size = 2 | ||
|
||
# code style settings: | ||
[*.{cs}] | ||
dotnet_sort_system_directives_first = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,35 @@ | ||
version: '{build}-{branch}' | ||
image: Visual Studio 2017 | ||
|
||
skip_commits: | ||
files: | ||
- '**/*.md' | ||
|
||
build_script: | ||
- cmd: dotnet restore src\Prometheus.Client.AspNetCore && dotnet pack src\Prometheus.Client.AspNetCore -c Release --include-symbols | ||
- pwsh: dotnet build -c Release | ||
|
||
after_build: | ||
- pwsh: .\pack.ps1 | ||
|
||
artifacts: | ||
- path: '**\*.nupkg' | ||
name: All Nupkg | ||
- path: '**\artifacts\nuget\*.nupkg' | ||
name: Nuget | ||
- path: '**\artifacts\myget\*.nupkg' | ||
name: Myget | ||
|
||
deploy: | ||
- provider: NuGet | ||
api_key: | ||
secure: nts+1V9NzzFZbyAVeJs951l/7K01aEfLTEGGyb8t2zNMcZhBnlSTGPoQV8IRpsMa | ||
artifact: NuGet | ||
on: | ||
appveyor_repo_tag: true | ||
appveyor_repo_tag: true | ||
- provider: NuGet | ||
server: https://www.myget.org/F/phnx47-beta/api/v2/package | ||
api_key: | ||
secure: Smuwoi47XyX6b6x66VpPnnL96F3cl1nukALrFnZo1Oony38dzouByG7pnt6DX4HT | ||
symbol_server: https://www.myget.org/F/phnx47-beta/symbols/api/v2/package | ||
artifact: MyGet | ||
on: | ||
branch: master | ||
appveyor_repo_tag: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if ($env:APPVEYOR_REPO_TAG -eq "false") { | ||
dotnet pack $env:APPVEYOR_BUILD_FOLDER\src\Prometheus.Client.AspNetCore -c Release --include-symbols --no-build --version-suffix build$env:APPVEYOR_BUILD_NUMBER -o artifacts\myget | ||
} | ||
|
||
if ($env:APPVEYOR_REPO_TAG -eq "true") { | ||
dotnet pack $env:APPVEYOR_BUILD_FOLDER\src\Prometheus.Client.AspNetCore -c Release --include-symbols --no-build -o artifacts\nuget | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters