forked from Azure/azure-webjobs-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
67 lines (50 loc) · 1.79 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
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 2.1.300 -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'"
}
.\Build.ps1 -packageSuffix "$buildNumber"
test_script:
- ps: >-
$success = $true
dotnet test .\test\Microsoft.Azure.WebJobs.Host.UnitTests\ -v q --no-build
$success = $success -and $?
dotnet test .\test\Microsoft.Azure.WebJobs.Host.FunctionalTests\ -v q --no-build
$success = $success -and $?
dotnet test .\test\Microsoft.Azure.WebJobs.Logging.FunctionalTests\ -v q --no-build
$success = $success -and $?
# see results in app insights AntaresDemo 'functionse2eai'
dotnet test .\test\Microsoft.Azure.WebJobs.Host.EndToEndTests\ -v q --no-build
$success = $success -and $?
dotnet test .\test\Microsoft.Azure.WebJobs.Extensions.EventHubs.UnitTests\ -v q --no-build
$success = $success -and $?
dotnet test .\test\Microsoft.Azure.Webjobs.Extensions.Storage.UnitTests\ -v q --no-build
$success = $success -and $?
dotnet test .\test\Microsoft.Azure.WebJobs.Extensions.ServiceBus.UnitTests\ -v q --no-build
$success = $success -and $?
if (-not $success) { exit 1 }
on_finish:
- ps: .\tools\PollSigningResults.ps1