-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathappveyor.yml
More file actions
44 lines (44 loc) · 1.88 KB
/
appveyor.yml
File metadata and controls
44 lines (44 loc) · 1.88 KB
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
version: 1.3.{build}.0
configuration:
- Release
platform: Any CPU
image: Visual Studio 2017
assembly_info:
patch: true
file: '**\AssemblyInfoCommon.*'
assembly_version: $(appveyor_build_version)
assembly_file_version: $(appveyor_build_version)
assembly_informational_version: $(appveyor_build_version)
environment:
semversion: 1.1.$(APPVEYOR_BUILD_NUMBER)
CODECOV_REPO_TOKEN:
secure: cOjdr+oFYpqClG9XmYPFU9yX6x9TA9VTSFk7h/mLBu5nT1kOyrLbSVdhp0Rc3IMe
build:
project: MiniPie.sln
verbosity: minimal
before_build:
- nuget restore
artifacts:
- path: MiniPie\Releases\
name: MiniPie
- path: MiniPie\Releases\MiniPieSetup.exe
name: Installer
- path: MiniPie\bin\Release\
name: Binaries
after_build:
- cmd: CreateInstaller.bat %semversion%
notifications:
- provider: Slack
auth_token:
secure: l9d2Z7yxqHY6S1Iom6FANSPbVpIcz0zes2lw6DmedTdqfgJRf10nVXSRp2YAMwVy
channel: '#appveyor'
test_script:
- cmd: packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -filter:+"[MiniPie*]MiniPie* -[MiniPie.Tests]* -[MiniPie*]*.Properties* -[MiniPie*]MiniPie.Views* -[MiniPie*]MiniPie.Interactivity* -[MiniPie.Core]MiniPie.Core.SpotifyNative*" -target:packages\xunit.runner.console.2.3.1\tools\net452\xunit.console.exe -targetargs:"MiniPie.Tests\bin\Release\MiniPie.Tests.dll -noshadow -appveyor -xml xunit-results.xml" -output:coverage.xml -returntargetcode
#- ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\xunit-results.xml))
after_test:
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "coverage.xml" -t $env:CODECOV_REPO_TOKEN