Skip to content

Commit d86fc1b

Browse files
Merge pull request #596 from JordanMartinez/addWindowsCIBuild
Add Windows build to CI
2 parents ce00638 + af83c83 commit d86fc1b

13 files changed

Lines changed: 411 additions & 129 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ before_script:
3535
- if [[ "${TRAVIS_OS_NAME}" == linux ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi
3636

3737
script:
38-
- gradle assemble
39-
- gradle check --info --stacktrace
38+
- ./gradlew assemble
39+
- ./gradlew check --info --stacktrace
4040

4141
# See https://docs.travis-ci.com/user/languages/java/#Caching
4242
before_cache:

appveyor.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Adapted from TestFX
2+
version: "{branch} {build}"
3+
4+
environment:
5+
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
6+
matrix:
7+
- JAVA_OPTS: ""
8+
- JAVA_OPTS: "-Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=2500"
9+
10+
shallow_clone: true
11+
12+
build:
13+
verbosity: detailed
14+
15+
build_script:
16+
- cmd: java -version
17+
- cmd: gradlew.bat --version --no-daemon
18+
19+
test_script:
20+
- gradlew.bat check --info --stacktrace --no-daemon
21+
22+
cache:
23+
- C:\Users\appveyor\.gradle

gradle/wrapper/gradle-wrapper.jar

53.4 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
zipStoreBase=GRADLE_USER_HOME
4+
zipStorePath=wrapper/dists
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2-bin.zip
6+
distributionSha256Sum=515dd63d32e55a9c05667809c5e40a947529de3054444ad274b3b75af5582eae

gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

richtextfx/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ dependencies {
3030
compile (group: 'org.fxmisc.flowless', name: 'flowless', version: '0.6-SNAPSHOT')
3131
compile group: 'org.fxmisc.wellbehaved', name: 'wellbehavedfx', version: '0.3'
3232

33-
testCompile group: 'junit', name: 'junit', version: '[4.0,5)'
33+
testCompile group: 'junit', name: 'junit', version: '4.12'
3434

35-
integrationTestCompile group: 'junit', name: 'junit', version: '[4.0,)'
35+
integrationTestCompile group: 'junit', name: 'junit', version: '4.12'
3636
integrationTestCompile group: 'com.nitorcreations', name: 'junit-runners', version: '1.2'
3737
integrationTestCompile "org.testfx:testfx-core:4.0.6-alpha"
3838
integrationTestCompile ("org.testfx:testfx-junit:4.0.6-alpha") {

richtextfx/src/integrationTest/java/org/fxmisc/richtext/RichTextFXTestBase.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,34 @@
2424
public abstract class RichTextFXTestBase extends ApplicationTest {
2525

2626
static {
27+
String robotProperty = System.getProperty("testfx.robot");
28+
boolean usingGlass = robotProperty != null && robotProperty.equals("glass");
29+
30+
USING_GLASS_ADAPTER = usingGlass;
31+
USING_AWT_ADAPTER = !usingGlass;
32+
2733
String osName = System.getProperty("os.name").toLowerCase();
2834

2935
IS_WINDOWS = osName.startsWith("win");
3036
IS_MAC = osName.startsWith("mac");
3137
IS_LINUX = osName.startsWith("linux");
3238
}
3339

40+
/* *********************************************** *
41+
* TestFX--Related
42+
* *********************************************** */
43+
44+
public static final boolean USING_AWT_ADAPTER;
45+
public static final boolean USING_GLASS_ADAPTER;
46+
47+
public final void skip_if_using_glass_robot() {
48+
assumeTrue(USING_AWT_ADAPTER);
49+
}
50+
51+
public final void skip_if_using_awt_robot() {
52+
assumeTrue(USING_GLASS_ADAPTER);
53+
}
54+
3455
/* *********************************************** *
3556
* OS-RELATED
3657
* *********************************************** */

0 commit comments

Comments
 (0)