forked from Azure/azure-webjobs-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
40 lines (37 loc) · 930 Bytes
/
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
version: 3.0.{build}
init:
- ps: |
if ($env:FUNCTIONS_NIGHTLY -eq "1") {
$version = Get-Date -Format "yyyyMMdd-HHmm"
Update-AppveyorBuild -Version $version -Message "Functions Scheduled Build"
}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- dev
- master
- next
image: Visual Studio 2017
max_jobs: 1
install:
- ps: |
$env:CommitHash = "$env:APPVEYOR_REPO_COMMIT"
.\dotnet-install.ps1 -Version 3.1.410 -Architecture x86
build_script:
- ps: |
$buildNumber = 0
$hasTag = Test-Path env:APPVEYOR_REPO_TAG_NAME
if (-not $hasTag) {
$buildNumber = $env:APPVEYOR_BUILD_NUMBER
Write-Host "No git tag found. Setting packages suffix to '$buildNumber'"
}
if ($hasTag) {
$env:Configuration = "Release"
}
.\Build.ps1 -packageSuffix "$buildNumber"
test_script:
- ps: |
.\runtests.ps1
on_finish:
- ps: .\tools\PollSigningResults.ps1