You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2022/08/19 06:14:48 UTC
[camel-quarkus] branch main updated: Restore ability to run js-dsl native tests
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new aca0965672 Restore ability to run js-dsl native tests
aca0965672 is described below
commit aca0965672419220bfb29f2cde42c691c70a0202
Author: James Netherton <ja...@gmail.com>
AuthorDate: Thu Aug 18 15:59:57 2022 +0100
Restore ability to run js-dsl native tests
Fixes #3961
---
integration-tests/js-dsl/README.adoc | 10 ++++++++++
integration-tests/js-dsl/pom.xml | 10 ++++++----
2 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/integration-tests/js-dsl/README.adoc b/integration-tests/js-dsl/README.adoc
new file mode 100644
index 0000000000..b36dda0ede
--- /dev/null
+++ b/integration-tests/js-dsl/README.adoc
@@ -0,0 +1,10 @@
+== Camel Quarkus JS Integration Tests
+
+To run the native JS integration tests, you must ensure that you have GraalVM installed locally, together with JS component.
+
+You can install GraalVM JS as follows.
+
+[source,shell]
+----
+${GRAALVM_HOME}/bin/gu install js
+----
diff --git a/integration-tests/js-dsl/pom.xml b/integration-tests/js-dsl/pom.xml
index 7d06320d55..136e8a52ac 100644
--- a/integration-tests/js-dsl/pom.xml
+++ b/integration-tests/js-dsl/pom.xml
@@ -70,21 +70,24 @@
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
-
</dependencies>
-
<profiles>
- <!-- https://github.com/apache/camel-quarkus/issues/3961
<profile>
<id>native</id>
<activation>
<property>
<name>native</name>
</property>
+ <file>
+ <exists>${env.GRAALVM_HOME}/bin/js</exists>
+ </file>
</activation>
<properties>
<quarkus.package.type>native</quarkus.package.type>
+ <!-- Force host only native builds since the docker builder image does not have GraalVM JS installed -->
+ <quarkus.native.container-build>false</quarkus.native.container-build>
+ <quarkus.native.additional-build-args>--language:js</quarkus.native.additional-build-args>
</properties>
<build>
<plugins>
@@ -103,7 +106,6 @@
</plugins>
</build>
</profile>
- -->
<profile>
<id>virtualDependencies</id>
<activation>