forked from Azure/azure-functions-java-worker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
51 lines (39 loc) · 937 Bytes
/
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
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.5.3-$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\
after_build:
- ps: >
.\setup-tests.ps1
test_script:
- ps: >
.\run-tests.ps1