forked from gitextensions/gitextensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
65 lines (57 loc) · 2.45 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
version: 3.00.00.{build}
os: Visual Studio 2017
branches:
except:
- configdata
- gh-pages
environment:
matrix:
- IdeVersion: VS2017
SKIP_PAUSE: TRUE
ARCHIVE_WITH_PDB: TRUE
build:
verbosity: minimal
cache:
#- packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
- packages\WiX.3.11.0 -> Setup\packages.config
install:
- cmd: git submodule update --init --recursive
- cmd: echo /logger:"%ProgramFiles%\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll">> Directory.Build.rsp
- cmd: |-
cd Setup
python set_version_to.py -v %APPVEYOR_BUILD_VERSION% -t %APPVEYOR_BUILD_VERSION%Dev@%APPVEYOR_REPO_COMMIT:~0,5%
cd ..
build_script:
- ps: |
Write-Output "Platform: $env:IdeVersion"
& Setup\BuildInstallers.cmd
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
& Setup\MakePortableArchive.cmd Release %APPVEYOR_BUILD_VERSION%
#Upload a portable archive, not a installer
Get-ChildItem Setup\GitExtensions-Portable-*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
test_script:
- ps: |
$testAssemblies = @(
"UnitTests\GitCommandsTests\bin\Release\GitCommandsTests.dll"
"UnitTests\GitUITests\bin\Release\GitUITests.dll"
"UnitTests\GravatarTests\bin\Release\GravatarTests.dll"
"UnitTests\Plugins\ReleaseNotesGeneratorTests\bin\Release\ReleaseNotesGeneratorTests.dll"
"UnitTests\ResourceManagerTests\bin\Release\ResourceManagerTests.dll"
)
$packageConfig = [xml](Get-Content .nuget\packages.config)
$opencover_version = $packageConfig.SelectSingleNode('/packages/package[@id="OpenCover"]').version
$opencover_console = "packages\OpenCover.$opencover_version\tools\OpenCover.Console.exe"
&$opencover_console `
-register:user `
-returntargetcode `
-hideskipped:All `
-filter:"+[*]* -[FluentAssertions*]* -[SmartFormat*]* -[nunit*]*" `
-excludebyattribute:*.ExcludeFromCodeCoverage* `
-excludebyfile:*\*Designer.cs `
-output:"OpenCover.GitExtensions.xml" `
-target:"nunit3-console.exe" `
-targetargs:"$testAssemblies"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
$codecov_version = $packageConfig.SelectSingleNode('/packages/package[@id="Codecov"]').version
$codecov = "packages\Codecov.$codecov_version\tools\codecov.exe"
&$codecov -f ".\OpenCover.GitExtensions.xml"