forked from Speedygeek/ZendeskApi_v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
45 lines (36 loc) · 1.14 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
install:
- ps: >-
choco install gitversion.portable -pre -y
$output = gitversion
$joined = $output -join "`n"
$versionInfo = $joined | ConvertFrom-Json
$versionInfo | % { foreach ($property in $_.PSObject.Properties) { Set-AppveyorBuildVariable -Name "GitVersion_$($property.Name)" -Value "$($_.PSObject.properties[$property.Name].Value)" }}
$script_versionNumber = "$($versionInfo.NuGetVersionV2).build.$($env:APPVEYOR_BUILD_ID)"
Update-AppveyorBuild -Version $script_versionNumber
pull_requests:
do_not_increment_build_number: true
os: Default Azure
configuration: Release
platform: Any CPU
assembly_info:
patch: true
nuget:
disable_publish_on_pr: true
before_build:
- ps: >-
cd C:\projects\zendeskapi-v2\src
nuget.exe restore
build:
project: C:\projects\zendeskapi-v2\src\ZendeskApi_v2_vs2013.sln
verbosity: minimal
test: off
#test_script:
#- ps: nunit-console C:\projects\zendeskapi-v2\src\Tests\bin\Release\Tests.dll /framework:net-4.5
artifacts:
- path: '\src\ZendeskApi_v2_Package\*.nupkg'
name: Pakage
deploy:
- provider: Environment
name: Public Nuget
on:
branch: master