forked from Azure/azure-functions-host
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
78 lines (68 loc) · 2.21 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
version: 2.0.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- dev
- master
image:
- Ubuntu
- Visual Studio 2017
max_jobs: 1
for:
-
matrix:
only:
- image: Ubuntu
install:
- sh: >-
mkdir .dotnet &&
chmod +x dotnet-install.sh &&
./dotnet-install.sh --version 2.2.202 --install-dir .dotnet &&
PATH=".dotnet:"$PATH && dotnet --info
build_script:
- sh: dotnet build WebJobs.Script.sln
test: off
-
matrix:
only:
- image: Visual Studio 2017
init:
- ps: |
if ($env:FUNCTIONS_NIGHTLY -eq "1") {
$version = Get-Date -Format "yyyyMMdd-HHmm"
Update-AppveyorBuild -Version $version -Message "Functions Scheduled Build"
}
clone_folder: c:\azure-webjobs-sdk-script
install:
- ps: >-
$env:CommitHash = "$env:APPVEYOR_REPO_COMMIT"
Install-Product node 10.0.0 x86
build_script:
- ps: |
$hasTag = Test-Path env:APPVEYOR_REPO_TAG_NAME
$isbuildFromMasterBranch = $env:APPVEYOR_REPO_BRANCH -eq "master"
$includeSuffix = (-Not ($hasTag -OR $isBuildFromMasterBranch))
if (-Not $includeSuffix) {
$env:Configuration = "Release"
}
.\build.ps1 -buildNumber "$env:APPVEYOR_BUILD_NUMBER" -includeSuffix $includeSuffix
after_build:
- ps: >
$bypassPackaging = $env:APPVEYOR_PULL_REQUEST_NUMBER -and -not $env:APPVEYOR_PULL_REQUEST_TITLE.Contains("[pack]")
if ($bypassPackaging) {
Write-Host "Bypassing artifact publishing and signing for pull request." -ForegroundColor Yellow
} else {
Get-ChildItem buildoutput\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName "Binaries" }
Get-ChildItem buildoutput\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName "Runtime" }
}
test_script:
- ps: >
.\run-tests.ps1
on_finish:
- ps: >
$bypassPackaging = $env:APPVEYOR_PULL_REQUEST_NUMBER -and -not $env:APPVEYOR_PULL_REQUEST_TITLE.Contains("[pack]")
if (-not $bypassPackaging) {
& .\tools\PollSigningResults.ps1
if (-not $?) { exit 1 }
}