forked from Azure/azure-functions-java-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
61 lines (48 loc) · 1.56 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
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.0-SNAPSHOT-$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
$proc = start-process -filepath c:\projects\azure-functions-java-worker\Azure.Functions.Cli\func.exe -WorkingDirectory "c:\projects\azure-functions-java-worker\endtoendtests\target\azure-functions\azure-functions-java-endtoendtests" -ArgumentList "host start" -RedirectStandardOutput "output.txt" -RedirectStandardError "error.txt" -PassThru
# wait for host to start
Start-Sleep -s 30
test_script:
- ps: >
.\run-tests.ps1
on_finish:
- ps: |
Stop-Process -Id $proc.Id -Erroraction Ignore
# Output standard input stream and error stream
Write-Output "Standard input stream :" (gc ".\output.txt")
Write-Output "Standard error stream :" (gc ".\error.txt")