@@ -13,7 +13,12 @@ environment:
13
13
SKIP_PAUSE : TRUE
14
14
ARCHIVE_WITH_PDB : TRUE
15
15
16
+ # Build settings, not to be confused with "before_build" and "after_build".
17
+ # "project" is relative to the original build directory and not influenced by directory changes in "before_build".
16
18
build :
19
+ # enable MSBuild parallel builds
20
+ parallel : true
21
+ # MSBuild verbosity level
17
22
verbosity : minimal
18
23
19
24
cache :
@@ -28,15 +33,14 @@ install:
28
33
python set_version_to.py -v %APPVEYOR_BUILD_VERSION% -t %APPVEYOR_BUILD_VERSION%Dev@%APPVEYOR_REPO_COMMIT:~0,5%
29
34
cd ..
30
35
36
+ # to run your custom scripts instead of automatic MSBuild
31
37
build_script :
32
38
- ps : |
33
39
Write-Output "Platform: $env:IdeVersion"
34
- & Setup\BuildInstallers .cmd
40
+ & Setup\Build .cmd
35
41
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
36
- & Setup\MakePortableArchive.cmd Release %APPVEYOR_BUILD_VERSION%
37
- #Upload a portable archive, not a installer
38
- Get-ChildItem Setup\GitExtensions-Portable-*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
39
42
43
+ # to run your custom scripts instead of automatic tests
40
44
test_script :
41
45
- ps : |
42
46
$testAssemblies = @(
@@ -62,3 +66,29 @@ test_script:
62
66
$codecov_version = $packageConfig.SelectSingleNode('/packages/package[@id="Codecov"]').version
63
67
$codecov = "packages\Codecov.$codecov_version\tools\codecov.exe"
64
68
&$codecov -f ".\OpenCover.GitExtensions.xml"
69
+
70
+ # scripts to run after tests
71
+ after_test :
72
+ - ps : |
73
+ & Setup\BuildInstallers.cmd
74
+ if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
75
+ & Setup\MakePortableArchive.cmd Release $env:APPVEYOR_BUILD_VERSION
76
+ if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
77
+
78
+ artifacts :
79
+ # upload the generated portable archive only
80
+ - path : ' Setup/GitExtensions-Portable-*.zip'
81
+
82
+ # here we are going to override common configuration
83
+ for :
84
+
85
+ # configuration for all branches starting from "dev-"
86
+ # build in Debug mode and deploy locally for testing
87
+ -
88
+ branches :
89
+ only :
90
+ - /release\/.*/
91
+
92
+ artifacts :
93
+ # upload the generated installer
94
+ - path : ' Setup/GitExtensions-*.msi'
0 commit comments