-
Notifications
You must be signed in to change notification settings - Fork 14
/
.appveyor.yml
69 lines (63 loc) · 2.69 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
58
59
60
61
62
63
64
65
66
67
68
69
image: Visual Studio 2019
version: "{build}" #until it gets updated at install
configuration: Debug
environment:
base_version: 5.0.1
github_deploy: false
is_prerelease: true
package_version: $(BASE_VERSION)-alpha$(APPVEYOR_BUILD_NUMBER)
COVERALLS_REPO_TOKEN:
secure: WxjMN6xCAGad/rRS7HwDOhcXgXRnvrXZKYZkBK27iHGu6PcTf2YI6dlhBikAi/8n
build: off
test: off
install:
- ps: Update-AppveyorBuild -Version "$env:PACKAGE_VERSION"
- ps: dotnet restore /p:Version="$Env:APPVEYOR_BUILD_VERSION"
- ps: nuget install coveralls.net -Version 0.7.0 -OutputDirectory tools -ExcludeVersion
- ps: choco install codecov
build_script:
- ps: dotnet build -c "$Env:CONFIGURATION" /p:Version="$Env:APPVEYOR_BUILD_VERSION"
- ps: dotnet build -c "$Env:CONFIGURATION" /p:Version="$Env:APPVEYOR_BUILD_VERSION" /p:SymbolPackageFormat=symbols.nupkg
test_script:
- ps: dotnet test -c "$Env:CONFIGURATION" /p:Version="$Env:APPVEYOR_BUILD_VERSION" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- ps: if (Test-Path env:COVERALLS_REPO_TOKEN) { .\tools\coveralls.net\tools\csmacnz.coveralls.exe --opencover -i Tests/coverage.xml --useRelativePaths --repoToken $env:COVERALLS_REPO_TOKEN --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor $env:APPVEYOR_REPO_COMMIT_AUTHOR --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage $env:APPVEYOR_REPO_COMMIT_MESSAGE --jobId $env:APPVEYOR_BUILD_NUMBER --serviceName appveyor}
- ps: codecov -f Tests/coverage.xml
artifacts:
- path: 'FSharp.Interop.Dynamic\**\*.*nupkg'
name: NuGet
- path: 'Tests\coverage.*'
name: Coverlet
deploy:
- provider: NuGet
server: https://www.myget.org/F/dynamitey-ci/api/v2/package
api_key:
secure: yKbBrG0QiTfXUvND1/cMMNHxH1Bgal5g7c0pWGwqvjCtKGTtWkpvE2KlZb6E2ZgB
skip_symbols: false
symbol_server: https://www.myget.org/F/dynamitey-ci/symbols/api/v2/package
artifact: /.*\.nupkg/
- provider: GitHub
artifact: /.*\.[s]?nupkg/ # upload all NuGet packages to release assets
tag: v$(PACKAGE_VERSION)
description: 'Release description'
auth_token:
secure: sAkwkj/uWppL6/hBqda0g4SQ4OZ1cUDSe3Sf7jiHovAdQlizMunbVA8FQL5tPw6U #jay's public repo token
draft: true
prerelease: $(is_prerelease)
on:
github_deploy: true
for:
- branches:
only:
- /deploy-v.*-beta.*/
environment:
package_version: $(BASE_VERSION)-beta$(APPVEYOR_BUILD_NUMBER)
is_prerelease: true
github_deploy: true
- branches:
only:
- /deploy-v[\d,.]*/
configuration: Release
environment:
package_version: $(BASE_VERSION).$(APPVEYOR_BUILD_NUMBER)
is_prerelease: false
github_deploy: true