-
Notifications
You must be signed in to change notification settings - Fork 17
/
appveyor.yml
30 lines (24 loc) · 1.36 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
image: Visual Studio 2015
install:
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
- powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1'))}"
before_build:
- ps: Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion
- ps: Vsix-TokenReplacement VisualStudioExtension\source.extension.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
build_script:
- nuget restore .\VisualStudioExtension -Verbosity quiet -PackagesDirectory .\Packages
- dotnet restore .\Templates\AspNetCoreAngular2 --ignore-failed-sources -v Error
- dotnet restore .\Templates\BasicAspNetCore --ignore-failed-sources -v Error
- dotnet restore .\Templates\StaticWebsite --ignore-failed-sources -v Error
- dotnet restore .\Templates\VueJsWebpack --ignore-failed-sources -v Error
- msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
after_test:
- ps: Vsix-PushArtifacts | Vsix-PublishToGallery
before_deploy:
- ps: Vsix-CreateChocolatyPackage -packageId aspnetcoretemplatepack
deploy:
- provider: Environment
name: Chocolatey
on:
branch: master
appveyor_repo_commit_message_extended: /\[release\]/