forked from cube-soft/cube.filesystem.sevenzip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppVeyor.yml
More file actions
57 lines (57 loc) · 2.12 KB
/
AppVeyor.yml
File metadata and controls
57 lines (57 loc) · 2.12 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
45
46
47
48
49
50
51
52
53
54
55
56
57
version: 1.15.10.{build}
environment:
PROJECT_NAME: 'Cube.FileSystem.SevenZip'
PROJECT_BIN: 'bin\%PLATFORM%\%CONFIGURATION%\net45'
TEST_TOOL: '..\packages\OpenCover\4.7.922\tools\OpenCover.Console.exe'
TEST_ARGS: 'test --no-restore --no-build --logger:Appveyor'
TEST_FILTERS: '+[Cube*]* -[*]*.NativeMethods -[*]*.Properties.* -[*]*.Program -[*]*Form -[*]*Control'
TEST_COVERAGE: 'CoverResults.xml'
TEST_RESULTS: 'TestResults'
clone_folder: 'C:\Cube\%PROJECT_NAME%'
image: Visual Studio 2019
platform: Any CPU
configuration: Release
skip_tags: true
branches:
only:
- master
nuget:
project_feed: true
disable_publish_on_pr: true
before_build:
- nuget sources add -name Cube.Core -source https://ci.appveyor.com/nuget/cube.core
- nuget sources add -name Cube.FileSystem -source https://ci.appveyor.com/nuget/cube.filesystem
- nuget sources add -name Cube.Forms -source https://ci.appveyor.com/nuget/cube.forms
- nuget sources add -name Cube.Images -source https://ci.appveyor.com/nuget/cube.images
- nuget restore "%PROJECT_NAME%.sln"
build:
project: '%PROJECT_NAME%.sln'
parallel: true
publish_nuget: true
verbosity: minimal
test_script:
- >
"%TEST_TOOL%"
-log:Error
-register:appveyor
-target:dotnet.exe
-targetargs:"%TEST_ARGS% %PROJECT_NAME%.sln"
-returntargetcode
-hideskipped:All
-mergeoutput
-output:"%TEST_COVERAGE%"
-filter:"%TEST_FILTERS%"
after_test:
- pip install codecov
- codecov -f "%TEST_COVERAGE%"
- xcopy /q /Y /I "Applications\Ice\Main\%PROJECT_BIN%" "CubeIce"
- xcopy /q /Y /I "Applications\Ice\Configurator\%PROJECT_BIN%" "CubeIce.Settings"
- xcopy /q /Y /I "Applications\Ice\Associator\%PROJECT_BIN%" "CubeIce.Settings.Associate"
- xcopy /q /Y /I "Tests\Core\%PROJECT_BIN%\*.log" "%TEST_RESULTS%\"
- xcopy /q /Y /I "Tests\Ice\%PROJECT_BIN%\*.log" "%TEST_RESULTS%\"
- xcopy /q /Y /I "%TEST_COVERAGE%" "%TEST_RESULTS%\"
artifacts:
- path: 'CubeIce'
- path: 'CubeIce.Settings'
- path: 'CubeIce.Settings.Associate'
- path: '%TEST_RESULTS%'