forked from apache/qpid-broker-j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
47 lines (40 loc) · 1.53 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
version: '{build}'
skip_tags: true
clone_depth: 30
environment:
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven\apache-maven-3.3.9" )) {
(new-object System.Net.WebClient).DownloadFile(
'http://repo2.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip',
'C:\maven-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
- cmd: SET PATH=C:\maven\apache-maven-3.3.9\bin;%JAVA_HOME%\bin;%PATH%
build_script:
- mvn clean install -B -DskipTests
test_script:
- mvn test -B -Dskip.systests=true --fail-at-end
- mvn verify -pl systests/protocol-tests-amqp-1-0,systests/protocol-tests-amqp-0-8,systests/protocol-tests-amqp-0-10 -Dskip.unittests=true -B --fail-at-end
on_failure:
- ps: |
7z a -r surefire-reports.zip '**\target\surefire-reports\*'
Push-AppveyorArtifact surefire-reports.zip -DeploymentName 'Surefire Reports'
on_finish:
- ps: |
$url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
$wc = New-Object 'System.Net.WebClient'
$dirs = Get-ChildItem -Filter surefire-reports -Recurse
ForEach ($dir in $dirs)
{
$files = Get-ChildItem -Path $dir.FullName -Filter TEST-*.xml
ForEach ($file in $files)
{
$wc.UploadFile($url, (Resolve-Path $file.FullName))
}
}
cache:
- C:\maven\apache-maven-3.3.9