From 58b0fe1c168491b6dfb2899255127d6e46ab30db Mon Sep 17 00:00:00 2001 From: Hallvard Traetteberg <hal@ntnu.no> Date: Fri, 16 Aug 2019 16:05:45 +0200 Subject: [PATCH] Also exclude compilation of UI on gitlab, since FxMapControl isn't available. --- simpleexample/build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/simpleexample/build.gradle b/simpleexample/build.gradle index dd4745b..5a0e5c3 100644 --- a/simpleexample/build.gradle +++ b/simpleexample/build.gradle @@ -33,6 +33,19 @@ test { } } +compile { + // don't compile UI without FxMapControl installed + if (project.hasProperty('gitlab-ci')) { + exclude 'simpleex.ui/*' + } +} +test { + // don't run UI test on server (that cannot run javafx) + if (project.hasProperty('gitlab-ci')) { + exclude 'simpleex.ui/*' + } +} + dependencies { compile "com.fasterxml.jackson.core:jackson-databind:2.9.8" compile 'fischer.clemens:FxMapControl:1.0' -- GitLab