-
Notifications
You must be signed in to change notification settings - Fork 20
/
appveyor.yml
47 lines (36 loc) · 1.4 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
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}
# branches to build
branches:
# whitelist
only:
- master
- release
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
os: Windows Server 2012 R2
# scripts that run after cloning repository
install:
- cmd: git submodule update --init
- cmd: nuget restore
- ps: .\prebuild.ps1
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
#---------------------------------#
# artifacts configuration #
#---------------------------------#
after_test:
# Push artifacts and publish the nighly build to http://vsixgallery.com
- ps: if ($env:APPVEYOR_REPO_BRANCH -ne "release") { Vsix-PushArtifacts .\YamlDotNetEditor\bin\*\*.vsix | Vsix-PublishToGallery }
- ps: if ($env:APPVEYOR_REPO_BRANCH -eq "release") { Vsix-PushArtifacts .\YamlDotNetEditor\bin\*\*.vsix }