forked from Azure/azure-functions-host
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
64 lines (57 loc) · 1.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
version: 2.0.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- dev
- master
- core
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.1.400 --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
.\build.ps1 -buildNumber "$env:APPVEYOR_BUILD_NUMBER" -includeVersion (!$hasTag)
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 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