-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
appveyor.yml
81 lines (66 loc) · 2.43 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
70
71
72
73
74
75
76
77
78
79
80
81
version: '{build}'
image: Visual Studio 2017
environment:
SNKFILE_SECRET: #SecretDatabase.kdbx / OpenSource / RethinkDb.Driver.snk.enc
secure: 1P01TSc3HXOsEEVJ8DkpC2AOqY9nE6bamI74rEwLH1zH0V8uD8yc38IOJ69o3t3jFHQhdDg8yTNiMu9dOP6iarAU/NXM0kd3PggyDgL1Gak=
skip_commits:
message: /(//skip\W*ci)|(read\W*me)/
init:
- ps: |
If ($Env:APPVEYOR_REPO_TAG_NAME -match "-"){
Set-AppveyorBuildVariable -Name "IsPreRelease" -Value True
}
Else{
Set-AppveyorBuildVariable -Name "IsPreRelease" -Value False
}
install:
# needed for rethinkdb-java submodule
- git submodule update --init --recursive
#- ps: Start-FileDownload 'https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-dev-win-x64.latest.exe'
#- cmd: dotnet-dev-win-x64.latest.exe /quiet
build_script: build.cmd ci
#after_build:
#before_test:
#test: off
test_script:
- build.cmd citest
artifacts:
- path: __package\*.nupkg
name: NuGet
- path: __package\*.snupkg
name: Symbols
- path: __package\*.zip
name: Zip
nuget:
disable_publish_on_pr: true
#before_deploy:
# - ps: |
# Write-Host "~~~~~~~~~~~~~~~~~~"
deploy:
- provider: GitHub
release: 'Release $(APPVEYOR_REPO_TAG_NAME) build $(APPVEYOR_BUILD_VERSION)'
tag: $(APPVEYOR_REPO_TAG_NAME)
description: '[**CHANGE LOG**](https://github.com/bchavez/RethinkDb.Driver/blob/master/HISTORY.md)'
prerelease: $(IsPreRelease)
artifact: Zip, NuGet, Symbols
auth_token:
secure: cyivrWQwrZNAb6UCNXlIQlGfVSnKIC6TatUOIP95CQgMeKGnmBSqBgAFv2TsRZhR
on:
branch: master
appveyor_repo_tag_name: /v\d+\.\d+\.\d+/
appveyor_repo_tag: true
- provider: NuGet
server:
symbol_server:
skip_symbols: false
api_key:
secure: 1nPS2ttf+N4+FUhd+GZycrL7YzSWQpZjnGOMCb5+pGJXSdx0IFvVF8xhTGna7B9t
artifact: NuGet, Symbols
on:
branch: master
appveyor_repo_tag_name: /v\d+\.\d+\.\d+/
appveyor_repo_tag: true
on_failure:
- ps: |
# Enables RDP for debugging and setup some tools
# $blockRdp = $true; choco install notepad2; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))