forked from TestFX/TestFX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
79 lines (65 loc) · 2.67 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "{branch} {build}"
environment:
matrix:
# Java 12 / AWT Robot
- JAVA_VERSION: "11"
JAVA_HOME: C:\Program Files\OpenJDK\jdk-12.0.2
_JAVA_OPTIONS: "-Dtestfx.robot=awt"
# Java 12 / Glass Robot (deadlock?)
# - JAVA_VERSION: "11"
# JAVA_HOME: C:\jdk11
# _JAVA_OPTIONS: "-Dtestfx.robot=glass"
# Java 12 / AWT Robot / HiDPI
- JAVA_VERSION: "11"
JAVA_HOME: C:\Program Files\OpenJDK\jdk-12.0.2
_JAVA_OPTIONS: "-Dtestfx.robot=awt -Dtestfx.awt.scale=true -Dglass.win.uiScale=200%"
# Java 12 / Headless (fails because of JDK-8201539)
- JAVA_VERSION: "11"
JAVA_HOME: C:\Program Files\OpenJDK\jdk-12.0.2
_JAVA_OPTIONS: "-Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw"
matrix:
allow_failures:
- JAVA_VERSION: "11"
_JAVA_OPTIONS: "-Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw"
shallow_clone: true
build:
verbosity: detailed
build_script:
- ps: |
choco install openjdk --version 12.0.2 --force --cache 'C:\ProgramData\chocolatey\cache'
refreshenv
- cmd: |
java -version
gradlew --version --no-daemon
gradlew versions --no-daemon
test_script:
- gradlew build --no-daemon --stacktrace
on_failure:
- ps: |
# Upload any screen captures that may have been grabbed on test failure.
$screenCaptures = '.\screen_captures\'
$screenCapturesArchive = 'screen_captures.zip'
Get-ChildItem -Include @("*.png") -Recurse | Where {$_.Name -match '.*testfx-test\ -\ \d+\.png'} | Copy-Item -Destination (New-Item -Type directory -Force $screenCaptures) -Force
Compress-Archive -Path $($screenCaptures + '*') -DestinationPath $screenCapturesArchive -CompressionLevel Optimal
if (Test-Path $screenCapturesArchive) {
Push-AppveyorArtifact $screenCapturesArchive -Verbose
}
on_finish:
- ps: |
Write-Host 'Uploading test results to AppVeyor…'
$wc = New-Object 'System.Net.WebClient'
ForEach ($file in Get-ChildItem -Recurse -Include "TEST-org.testfx*Test.xml") {
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", $file)
}
cache:
- C:\Users\appveyor\.gradle\caches
- C:\Users\appveyor\.gradle\wrapper -> .gradle-wrapper\gradle-wrapper.properties
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
- C:\ProgramData\chocolatey\cache -> appveyor.yml
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/2532276e31bee9ba82b7
on_build_success: true
on_build_failure: true
on_build_status_changed: true