forked from conan-io/conan-vs-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
68 lines (66 loc) · 2.57 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
56
57
58
59
60
61
62
63
64
65
66
67
environment:
matrix:
- stage: Build
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- stage: Test
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- stage: Test
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- stage: Test
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- stage: Deploy
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: Any CPU
skip_branch_with_pr: true
configuration: Release
matrix:
fast_finish: true
for:
-
matrix:
only:
- stage: Build
install:
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
before_build:
- ps: Vsix-IncrementVsixVersion -versionType revision | Vsix-UpdateBuildVersion
- ps: Vsix-TokenReplacement Conan.VisualStudio\source.extension.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
- ps: Vsix-TokenReplacement Conan.VisualStudio\Properties\AssemblyInfo.cs '"1.0.0.0"' '"{version}"'
- ps: Vsix-TokenReplacement Conan.VisualStudio.Core\Properties\AssemblyInfo.cs '"1.0.0.0"' '"{version}"'
- ps: Vsix-TokenReplacement Conan.VisualStudio.Tests\Properties\AssemblyInfo.cs '"1.0.0.0"' '"{version}"'
- ps: Vsix-TokenReplacement Conan.VisualStudio.VCProjectWrapper\Properties\AssemblyInfo.cs '"1.0.0.0"' '"{version}"'
- ps: Vsix-TokenReplacement Conan.VisualStudio\Properties\AssemblyInfo.cs '<git-sha>' $env:APPVEYOR_REPO_COMMIT
- nuget restore
build_script:
- msbuild /p:DeployExtension=false /p:verbosity=detailed
artifacts:
- path: Conan.VisualStudio\bin\Release\Conan.VisualStudio.vsix
name: Conan Visual Studio Extension
-
matrix:
only:
- stage: Test
build_script:
- ps: .\vsix\download_artifact.ps1
- ps: .\vsix\install_vsix.ps1
test_script:
- ps: .\vsix\check_installed.ps1
after_test:
- ps: .\vsix\uninstall_vsix.ps1 # TODO: Check it has been succesfully uninstalled
-
matrix:
only:
- stage: Deploy
branches:
only:
- master
skip_non_tags: true
install:
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
build_script:
- ps: .\vsix\download_artifact.ps1
test_script:
- ps: write-host "Deploy scenario"
deploy_script:
- ps: IF ($env:APPVEYOR_REPO_BRANCH -eq "master") {.\vsix\publish.ps1}
- ps: IF ($env:APPVEYOR_REPO_BRANCH -eq "master") {Vsix-PublishToGallery -path ${env:localArtifactPath}}