forked from unitycontainer/unity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
57 lines (47 loc) · 1.45 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
image: Visual Studio 2017
configuration: Release
platform: Any CPU
install:
- ps: $env:build_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Update-AppveyorBuild -Version "$env:build_version.$env:APPVEYOR_BUILD_NUMBER"
before_build:
- cmd: dotnet restore
build:
project: package.sln
parallel: true
verbosity: minimal
dotnet_csproj:
patch: false
file: '**\*.csproj'
version: $(build_version)
package_version: $(build_version)
# file_version: $(APPVEYOR_BUILD_VERSION)
before_test:
- choco install opencover.portable
- choco install codecov
test_script:
- OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test" -filter:"+[Unity*]* -[*]*Resources"
after_test:
- codecov -f "results.xml"
artifacts:
- path: '**\Unity.*.nupkg'
name: 'Unity'
#deploy:
#- provider: GitHub
# force_update: true
# tag: $(appveyor_repo_tag_name)
# release: v$(appveyor_build_version)
# auth_token:
# secure: 0RltkfAMN35pApf7xYqjwy1EgsVeniSYPv35Qb9ntHY1b4SC51QYLXVVfklvw09j
# artifact: /.*\.nupkg/ # upload all NuGet packages to release assets
# draft: false
# prerelease: false
# on:
# appveyor_repo_tag: true # deploy on tag push only
#- provider: NuGet
# api_key:
# secure: Q/HUObjarHxWF0NlnHBDY5uMQHM4ESyKfFCYdbRVfsNrWUFozADu6FMvh44gEmFk
# skip_symbols: false
# artifact: /.*\.nupkg/
# on:
# appveyor_repo_tag: true # deploy on tag push only