From f7070f210dc70a5baafb8fb8f3b9bdda28ff6fd7 Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Wed, 18 Aug 2021 00:34:36 +0200 Subject: [PATCH] [web] optionally skip benchmarks (by default enabled) --- web/gradle.properties | 1 + web/settings.gradle.kts | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web/gradle.properties b/web/gradle.properties index eef5cfd51a..113fe9f100 100644 --- a/web/gradle.properties +++ b/web/gradle.properties @@ -3,3 +3,4 @@ COMPOSE_CORE_VERSION=0.0.0-master-build316 COMPOSE_WEB_VERSION=1.0.0-alpha1 compose.web.buildSamples=false compose.web.tests.integration.withFirefox +compose.web.tests.skip.benchmarks=false diff --git a/web/settings.gradle.kts b/web/settings.gradle.kts index 2f0904e095..3d6f4e25c5 100644 --- a/web/settings.gradle.kts +++ b/web/settings.gradle.kts @@ -38,9 +38,14 @@ module(":web-core", "core") module(":web-widgets", "widgets") module(":web-integration-core", "integration-core") module(":web-integration-widgets", "integration-widgets") -module(":web-benchmark-core", "benchmark-core") module(":compose-compiler-integration", "compose-compiler-integration") +if (extra["compose.web.tests.skip.benchmarks"]!!.toString().toBoolean() != true) { + module(":web-benchmark-core", "benchmark-core") +} else { + println("skipping benchmarks") +} + if (extra["compose.web.buildSamples"]!!.toString().toBoolean() == true) { println("building with examples") module(":examples:falling-balls-web", "../examples/falling-balls-web")