forked from jstedfast/MailKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
69 lines (45 loc) · 1.53 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
68
version: 2.0.5.{build}
os: Visual Studio 2017
configuration: Debug
platform: Any CPU
branches:
only:
- master
skip_tags: true
environment:
COVERALLS_REPO_TOKEN:
secure: XvmOROcqgidalZg23H16UjDbAxIMkpuVXwKKPEp0bq3W5J2av35X1BsZvClM25JX
install:
- cmd: git submodule update --init --recursive
- cmd: nuget restore submodules\MimeKit\MimeKit.Net45.sln
- cmd: nuget restore MailKit.Net45.sln
build:
project: MailKit.Net45.sln
verbosity: minimal
test_script:
- ps: >-
$testDir = ".\UnitTests\bin\Debug\"
$tests = @("$testdir\UnitTests.dll")
foreach ($elem in $tests) {
.\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe `
-register:user `
-target:.\packages\NUnit.Runners.2.6.4\tools\nunit-console.exe `
"-targetargs: ""$elem"" /framework:net-4.5 /noshadow" `
"-filter:+[MailKit]* -[UnitTests]* -[submodules]*" `
-output:opencover.xml `
}
$revision = git rev-parse HEAD
$branch = git rev-parse --abbrev-ref HEAD
$commitAuthor = git show --quiet --format="%aN" $revision
$commitEmail = git show --quiet --format="%aE" $revision
$commitMessage = git show --quiet --format="%s" $revision
.\packages\coveralls.net.0.7.0\tools\csmacnz.Coveralls.exe `
--opencover -i opencover.xml `
--repoToken $Env:COVERALLS_REPO_TOKEN `
--commitId $revision `
--commitBranch $branch `
--commitAuthor $commitAuthor `
--commitEmail $commitEmail `
--commitMessage $commitMessage `
--useRelativePaths `
--basePath .\UnitTests\bin\Debug