forked from Azure/azure-webjobs-sdk-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
53 lines (50 loc) · 1.38 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
version: '{build}'
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2017
branches:
only:
- master
- dev
- next
- core
clone_folder: c:\azure-webjobs-sdk-extensions
install:
- ps: >
$env:CommitHash = "$env:APPVEYOR_REPO_COMMIT"
environment:
BUILD_NUMBER: '%APPVEYOR_BUILD_NUMBER%'
IncludeBuildNumberInVersion: 1
build_script:
- ps: |
dotnet --version
dotnet build -v q
$projects = `
"WebJobs.Extensions", `
"WebJobs.Extensions.CosmosDB", `
"WebJobs.Extensions.Http", `
"WebJobs.Extensions.MobileApps", `
"WebJobs.Extensions.Twilio", `
"WebJobs.Extensions.SendGrid"
if($env:IncludeBuildNumberInVersion -eq "1")
{
Write-Host "Generating nuget packages with build number."
foreach ($project in $projects)
{
dotnet pack src\$project\$project.csproj -o ..\..\buildoutput --no-build --version-suffix "-$env:APPVEYOR_BUILD_NUMBER"
}
}
else
{
Write-Host "Generating nuget packages without build number."
foreach ($project in $projects)
{
dotnet pack src\$project\$project.csproj -o ..\..\buildoutput --no-build
}
}
test_script:
- ps: >-
dotnet test .\test\WebJobs.Extensions.Tests\ -v q --no-build -p:ParallelizeTestCollections=false
artifacts:
- path: buildoutput\*.nupkg
name: Packages