forked from madskristensen/WebCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (34 loc) · 1.33 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
version: 1.0.{build}
os: Visual Studio 2015
install:
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
- npm install npm@3.3.3 -g
- set PATH=%APPDATA%\npm;%PATH%
- npm --version
before_build:
- ps: Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion
- ps: Vsix-IncrementNuspecVersion .\src\WebCompiler\MSBuild\*.nuspec
- ps: Vsix-TokenReplacement src\WebCompilerVsix\WebCompilerPackage.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
- ps: Vsix-TokenReplacement src\WebCompiler\Compile\CompilerService.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
build_script:
- nuget restore -Verbosity quiet
- msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
after_test:
- ps: Vsix-PushArtifacts
artifacts:
- path: src\WebCompiler\**\*.nupkg
name: NuGet package
before_deploy:
- ps: Vsix-CreateChocolatyPackage -packageId webcompiler
deploy:
- provider: NuGet
artifact: /NuGet/
api_key:
secure: 6xBu/05BWJDPa2PRkxEH3PHU/caLvy2lzf1eWdRBGXwSCTejHtI+6e0V4s2LaVri
- provider: Environment
name: Chocolatey
on:
branch: master
appveyor_repo_commit_message_extended: /\[release\]/
after_deploy:
- ps: Vsix-PublishToGallery .\src\WebCompilerVsix\**\*.vsix