Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Appveyor configuration issues #17

Merged
merged 2 commits into from
Feb 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build_script:
- gradlew.bat --no-daemon assemble checkstyleMain checkstyleTest

test_script:
- gradlew.bat --no-daemon headless allTests
- gradlew.bat --no-daemon headless test

environment:
JAVA_HOME: C:\Program Files\Java\jdk9 # Use 64-bit Java
Expand Down
20 changes: 19 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,24 @@ test {
}
}


task headless {
doLast {
println 'Setting headless mode properties.'
test {
systemProperties = [
'testfx.robot': 'glass',
'testfx.headless': 'true',
'prism.order': 'sw',
'prism.text': 't2k',
]
}
}
}

// Makes sure that headless properties are set before running tests
test.mustRunAfter headless

asciidoctor {
backends 'html5'
sourceDir 'docs'
Expand Down Expand Up @@ -169,4 +187,4 @@ task copyStylesheets(type: Copy) {
}
asciidoctor.dependsOn copyStylesheets

defaultTasks 'clean', 'test', 'asciidoctor', 'checkstyleMain', 'checkstyleTest'
defaultTasks 'clean', 'headless', 'test', 'asciidoctor', 'checkstyleMain', 'checkstyleTest'