Skip to content

Commit

Permalink
Fix Appveyor configuration issues
Browse files Browse the repository at this point in the history
Issues with adding configurations of AB4 and CI tools

Merge pull request #17 from seanieyap/master
  • Loading branch information
seanieyap authored Feb 18, 2019
2 parents bdc14d5 + 6acdff0 commit cc8f069
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
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'

0 comments on commit cc8f069

Please sign in to comment.