forked from jstemerdink/EPi.Libraries.Recommendations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
55 lines (54 loc) · 3.27 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
version: 1.0.{build}
#image: Visual Studio 2013
configuration: Release
environment:
github_token: 'secure: TaDEavUfTj6EgwcO7y5njQVS5Z9bBU/fVFuSApo5XEO6FSBT5UzJQmyJjbhIFDZb'
myget_token: 'secure: 9Z+KYPk2hI7hg9kYLv/N13fvoqcYCP96isNUkRrKu0v87cw85H62oe/DCwpqvBXF'
install:
- choco install gitversion.portable -y
#- choco install resharper-clt.portable -y
- cmd: nuget sources add -Name EPiServerFeed -Source http://nuget.episerver.com/feed/packages.svc/
before_build:
- cmd: nuget restore
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
build:
project: EPi.Libraries.Recommendations.sln
verbosity: normal
after_build:
#- cmd: dupfinder.exe EPi.Libraries.DeviceDetection.sln
#- cmd: InspectCode.exe EPi.Libraries.DeviceDetection.sln -x=StyleCop.StyleCop;PowerToys.CyclomaticComplexity
- cmd: nuget pack EPi.Libraries.Recommendations\EPi.Libraries.Recommendations.csproj -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "EPi.Libraries.Recommendations.%GitVersion_NuGetVersion%.nupkg"
- cmd: nuget pack EPi.Libraries.Recommendations.CatalogExportJob\EPi.Libraries.Recommendations.CatalogExportJob.csproj -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "EPi.Libraries.Recommendations.CatalogExportJob.%GitVersion_NuGetVersion%.nupkg"
- cmd: nuget pack EPi.Libraries.Recommendations.UsageExportJob\EPi.Libraries.Recommendations.UsageExportJob.csproj -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
- cmd: appveyor PushArtifact "EPi.Libraries.Recommendations.UsageExportJob.%GitVersion_NuGetVersion%.nupkg"
- 7z a EPi.Libraries.Recommendations.%GitVersion_NuGetVersion%.zip %APPVEYOR_BUILD_FOLDER%\EPi.Libraries.Recommendations\bin\Release\EPi.Libraries.Recommendations.dll
- cmd: appveyor PushArtifact "EPi.Libraries.Recommendations.%GitVersion_NuGetVersion%.zip"
- 7z a EPi.Libraries.Recommendations.CatalogExportJob.%GitVersion_NuGetVersion%.zip %APPVEYOR_BUILD_FOLDER%\EPi.Libraries.Recommendations.CatalogExportJob\bin\Release\EPi.Libraries.Recommendations.CatalogExportJob.dll
- cmd: appveyor PushArtifact "EPi.Libraries.Recommendations.CatalogExportJob.%GitVersion_NuGetVersion%.zip"
- 7z a EPi.Libraries.Recommendations.UsageExportJob.%GitVersion_NuGetVersion%.zip %APPVEYOR_BUILD_FOLDER%\EPi.Libraries.Recommendations.UsageExportJob\bin\Release\EPi.Libraries.Recommendations.UsageExportJob.dll
- cmd: appveyor PushArtifact "EPi.Libraries.Recommendations.UsageExportJob.%GitVersion_NuGetVersion%.zip"
before_package:
- ps: >-
Write-Host -NoNewline "Installing NuGet 3.3.0..."
if (Test-Path 'C:\Tools\NuGet3') { $nugetDir = 'C:\Tools\NuGet3' } else { $nugetDir = 'C:\Tools\NuGet' }
deploy:
- provider: NuGet
server: https://www.myget.org/F/epi-libraries/api/v2/package
api_key:
secure: 9Z+KYPk2hI7hg9kYLv/N13fvoqcYCP96isNUkRrKu0v87cw85H62oe/DCwpqvBXF
skip_symbols: true
artifact: /.*\.nupkg/
on:
branch: develop # release from develop branch only
- provider: GitHub
auth_token:
secure: TaDEavUfTj6EgwcO7y5njQVS5Z9bBU/fVFuSApo5XEO6FSBT5UzJQmyJjbhIFDZb
draft: false
prerelease: false
#artifact: /.*\.zip/
artifact: /.*\.*/
on:
branch: master # release from master branch only
#appveyor_repo_tag: true # deploy on tag push only