forked from Azure/azure-functions-java-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
42 lines (33 loc) · 831 Bytes
/
Copy pathappveyor.yml
File metadata and controls
42 lines (33 loc) · 831 Bytes
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
version: '{build}'
image: Visual Studio 2017
pull_requests:
do_not_increment_build_number: true
branches:
only:
- dev
- master
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_VERSION: 2.1.402
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
install:
- ps: Get-Command mvn
- ps: Get-Command nuget
- cmd: echo %JAVA_HOME%
build_script:
- ps: |
$buildNumber = 0
if($env:APPVEYOR_REPO_TAG -eq "true") {
$buildNumber = $env:APPVEYOR_REPO_TAG_NAME
Write-Host “Found git tag."
}
else {
$buildNumber = "1.8.2-$env:APPVEYOR_BUILD_NUMBER"
Write-Host “git tag not found. Setting package suffix to '$buildNumber'"
}
.\package.ps1 -buildNumber $buildNumber
artifacts:
- path: 'pkg/*.nupkg'
cache:
- C:\maven\