forked from musicbeeremote/mbrc-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
52 lines (42 loc) · 1.4 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
-
branches:
only:
- master
image: Visual Studio 2019
init:
- choco install opencover.portable
- choco install codecov
configuration: Debug
before_build:
- nuget restore
build:
verbosity: minimal
project: MBRC.sln
test_script:
- OpenCover.Console.exe -register:administrator -target:"nunit3-console.exe" -targetargs:".\build\bin\Debug\mbrc_core.Test.dll --result:nunitTestResult.xml" -output:".\coverage.xml" "-filter:+[*]* -[*.Test]*"
- codecov -f "coverage.xml"
-
branches:
only:
- /v\d*\.\d*\.\d*/
image: Visual Studio 2019
configuration: Release
before_build:
- nuget restore
artifacts:
- path: release\dist\musicbee_remote_$(APPVEYOR_REPO_TAG_NAME).zip
name: archive
- path: release\dist\musicbee_remote_$(APPVEYOR_REPO_TAG_NAME).exe
name: installer
build_script:
- cd .\release && release.bat
deploy:
release: $(APPVEYOR_REPO_TAG_NAME)
tag: $(APPVEYOR_REPO_TAG_NAME)
provider: GitHub
auth_token:
secure: B3xXgycUMsd6TTbYsT1qXm1ggbTFR4ciVLvkXOOUvfG1MIEugP1u5tt7Sbhtzvml # your encrypted token from GitHub
artifact: release\dist\musicbee_remote_$(APPVEYOR_REPO_TAG_NAME).zip, release\dist\musicbee_remote_$(APPVEYOR_REPO_TAG_NAME).exe
draft: true
on:
APPVEYOR_REPO_TAG: true # deploy on tag push only