Skip to content

Commit 08fb683

Browse files
committed
.appveyor.yml changes
1 parent 7a091fb commit 08fb683

2 files changed

Lines changed: 22 additions & 15 deletions

File tree

.appveyor.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
environment:
2+
VERIFY_STRONG_NAME: true
3+
MYGET_FEED_NAME: partialresponse
24
MYGET_API_KEY:
35
secure: nXDnbkmLZ0yeSj623ZeiGO+be5JhivxxrgiJ9lgHLVH/PKoI52UO2Kt6965QAAM+
46
NUGET_API_KEY:
@@ -35,8 +37,8 @@ install:
3537
3638
dotnet_csproj:
3739
patch: true
38-
file: 'src\$(APPVEYOR_PROJECT_NAME)\$(APPVEYOR_PROJECT_NAME).csproj'
39-
version: '$(RELEASE_VERSION)'
40+
file: src\$(APPVEYOR_PROJECT_NAME)\$(APPVEYOR_PROJECT_NAME).csproj
41+
version: $(RELEASE_VERSION)
4042

4143
before_build:
4244
- ps: |
@@ -60,19 +62,21 @@ build_script:
6062
6163
after_build:
6264
- ps: |
63-
Write-Host "STARTED verifying strong name" -ForegroundColor Magenta
65+
If ($($env:VERIFY_STRONG_NAME) -eq "true") {
66+
Write-Host "STARTED verifying strong name" -ForegroundColor Magenta
6467
65-
$sn = "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7 Tools\sn.exe"
68+
$sn = "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7 Tools\sn.exe"
6669
67-
foreach ($assembly in ls "src\$env:APPVEYOR_PROJECT_NAME\bin\$env:CONFIGURATION\*\$env:APPVEYOR_PROJECT_NAME.dll") {
68-
&$sn -vf $assembly
70+
foreach ($assembly in ls "src\$env:APPVEYOR_PROJECT_NAME\bin\$env:CONFIGURATION\*\$env:APPVEYOR_PROJECT_NAME.dll") {
71+
&$sn -vf $assembly
6972
70-
if ($LastExitCode -ne 0) { Break }
71-
}
73+
if ($LastExitCode -ne 0) { Break }
74+
}
7275
73-
Write-Host "FINISHED verifying strong name" -ForegroundColor Magenta
76+
Write-Host "FINISHED verifying strong name" -ForegroundColor Magenta
7477
75-
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
78+
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
79+
}
7680
7781
- ps: |
7882
Write-Host "STARTED creating NuGet package" -ForegroundColor Magenta
@@ -115,21 +119,20 @@ after_test:
115119
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
116120
117121
artifacts:
118-
- path: artifacts\$(APPVEYOR_PROJECT_NAME).$(RELEASE_VERSION).nupkg
119-
- path: artifacts\$(APPVEYOR_PROJECT_NAME).$(RELEASE_VERSION).symbols.nupkg
122+
- path: artifacts\*.nupkg
123+
name: NuGet
120124

121125
deploy:
122126
- provider: NuGet
123-
server: https://www.myget.org/F/partialresponse/api/v2
127+
server: https://www.myget.org/F/$(MYGET_FEED_NAME)/api/v2
124128
api_key: $(MYGET_API_KEY)
125129
skip_symbols: false
126-
symbol_server: https://www.myget.org/F/partialresponse/symbols/api/v2/package
130+
symbol_server: https://www.myget.org/F/$(MYGET_FEED_NAME)/symbols/api/v2/package
127131
on:
128132
appveyor_repo_tag: false
129133

130134
- provider: NuGet
131135
api_key: $(NUGET_API_KEY)
132136
skip_symbols: false
133-
artifact: /.*\.nupkg/
134137
on:
135138
appveyor_repo_tag: true

PartialResponse.AspNetCore.Mvc.Formatters.Json.sln

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ EndProject
1616
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E51F9EAF-B010-4AFF-B44C-79E180E97093}"
1717
ProjectSection(SolutionItems) = preProject
1818
.appveyor.yml = .appveyor.yml
19+
.gitignore = .gitignore
20+
LICENSE = LICENSE
21+
NOTICE = NOTICE
1922
nuget.config = nuget.config
23+
README.md = README.md
2024
stylecop.json = stylecop.json
2125
EndProjectSection
2226
EndProject

0 commit comments

Comments
 (0)