-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathappveyor.yml
63 lines (53 loc) · 2.15 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
# gitversion will change the version number
version: x-{build}
environment:
COVERALLS_REPO_TOKEN:
secure: JSfpTkHnbxXX3F54lOrfSkCbwzdQED+Ki/mjL7+2NNPfMgIFC/a4RHDgOtNX+1pW
chocoKey:
secure: Auc6eQGP6pNj7NMbHMQHNn7F3rTzqwQBDB1PoxDnoyxT819GKaU/Nbe3xEJYmHED
# tools we need for bulding/testing/deploying
install:
- choco install gitversion.portable -pre -y
- nuget install secure-file -ExcludeVersion
- if defined snk_secret secure-file\tools\secure-file -decrypt src\ipfs.ci.snk.enc -secret %snk_secret% -out src\ipfs.dev.snk
- choco install go-ipfs
- ipfs init
- ps: Start-Process -FilePath "ipfs.exe" -ArgumentList "daemon"
# need windows update server running for dokany
- ps: Set-Service wuauserv -StartupType Manual
- ps: Start-Service wuauserv
- cmd: choco install dokany
pull_requests:
do_not_increment_build_number: true
# gitversion will change the assembly info
assembly_info:
patch: false
before_build:
- nuget restore
- ps: gitversion /output buildserver /updateAssemblyInfo >gitversion.log
platform: Any CPU
configuration: Release
os: Visual Studio 2017
build:
project: IpfsMount.sln
publish_nuget: false
verbosity: minimal
after_build:
- echo %GitVersion_NuGetVersion%
- cmd: choco pack IpfsMount.nuspec -version "%GitVersion_NuGetVersion%"
- cmd: appveyor PushArtifact "ipfs-mount.%GitVersion_NuGetVersion%.nupkg"
after_test:
# Generate coverage report
- packages\OpenCover.4.6.519\tools\OpenCover.Console.exe
-register:user
-filter:"+[ipfs-mount]Ipfs.VirtualDisk.IpfsDokan"
-target:"vstest.console.exe"
-targetargs:"./IpfsMountTests/bin/Release/Ipfs.VirtualDisk.Tests.dll"
-output:coverage.xml
- if defined COVERALLS_REPO_TOKEN packages\coveralls.net.0.7.0\tools\csmacnz.coveralls.exe --opencover -i ./coverage.xml --serviceName appveyor --jobId %APPVEYOR_BUILD_NUMBER%
deploy_script:
- ps: >-
if($env:APPVEYOR_REPO_BRANCH -eq 'master' -And $env:APPVEYOR_REPO_TAG -eq 'true') {
$version = $env:GitVersion_NuGetVersion ;
choco push ipfs-mount.$version.nupkg -k $env:chocoKey
}