forked from madskristensen/ImageOptimizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
28 lines (21 loc) · 839 Bytes
/
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
version: 1.0.{build}
install:
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
before_build:
- ps: Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion
- ps: Vsix-TokenReplacement src\source.extension.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 | Vsix-PublishToGallery
artifacts:
- path: test/ImageOptimizer.Test/*.txt
before_deploy:
- ps: Vsix-CreateChocolatyPackage -packageId imageoptimizer
deploy:
- provider: Environment
name: Chocolatey
on:
branch: master
appveyor_repo_commit_message_extended: /\[release\]/