-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathappveyor.yml
52 lines (45 loc) · 2.22 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
image: Visual Studio 2019
before_build:
- nuget update -self
- nuget restore
platform:
- Any CPU
build:
project: MangaReader.sln
configuration:
- Debug
test: off
init:
- ps: |
$env:artifact_suffix = $env:APPVEYOR_BUILD_VERSION
if ($env:APPVEYOR_REPO_TAG -eq 'true') {
$env:artifact_suffix = $env:APPVEYOR_REPO_TAG_NAME
}
- ps: |
if ($env:APPVEYOR_RDP_ENABLED -eq 'true') {
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
}
after_build:
- nuget install OpenCover -ExcludeVersion
- nuget install Appveyor.TestLogger
- pip install codecov
- OpenCover\tools\OpenCover.Console.exe -returntargetcode -mergeoutput -register -output:.\coverage.xml -target:"dotnet.exe" -targetargs:"test --test-adapter-path:. --logger:Appveyor" -excludebyattribute:*.ExcludeFromCodeCoverage* -excludebyfile:*\*Designer.cs -hideskipped:All -oldstyle
- codecov -f "coverage.xml"
- dotnet publish MangaReader.Avalonia\MangaReader.Avalonia.csproj /p:Configuration=Debug /p:Platform=AnyCPU /p:TargetFramework=netcoreapp3.1 /p:PublishDir=bin\Publish\netcoreapp3.1\win-x64\ /p:SelfContained=true /p:RuntimeIdentifier=win7-x64
- dotnet publish MangaReader.Avalonia\MangaReader.Avalonia.csproj /p:Configuration=Debug /p:Platform=AnyCPU /p:TargetFramework=netcoreapp3.1 /p:PublishDir=bin\Publish\netcoreapp3.1\linux-x64\ /p:SelfContained=true /p:RuntimeIdentifier=linux-x64
- dotnet publish MangaReader.Avalonia\MangaReader.Avalonia.csproj /p:Configuration=Debug /p:Platform=AnyCPU /p:TargetFramework=netcoreapp3.1 /p:PublishDir=bin\Publish\netcoreapp3.1\osx-x64\ /p:SelfContained=true /p:RuntimeIdentifier=osx-x64
artifacts:
- path: MangaReader\bin\$(configuration)
name: MangaReader_%artifact_suffix%
type: zip
- path: MangaReader.Avalonia\bin\Publish\netcoreapp3.1\win-x64
name: MangaReader.Avalonia.Windows_%artifact_suffix%
type: zip
- path: MangaReader.Avalonia\bin\Publish\netcoreapp3.1\linux-x64
name: MangaReader.Avalonia.Linux_%artifact_suffix%
type: zip
- path: MangaReader.Avalonia\bin\Publish\netcoreapp3.1\osx-x64
name: MangaReader.Avalonia.macOS_%artifact_suffix%
type: zip
- path: '**\*.log'
name: test logs