diff --git a/TEST_FAST.md b/TEST_FAST.md index fbea72db9c..11f8969fca 100644 --- a/TEST_FAST.md +++ b/TEST_FAST.md @@ -42,10 +42,12 @@ Use `-Dpkg.skip=true` to skip all packaging at once (equivalent to all four flag |----------------------------|-------------------------------------------|--------------------------------------------------------------| | `-Dpkg.skip=true` | All of the below (bootjar + deb + rpm + zip) | Yes | | `-Dpkg.skip.bootjar=true` | `spring-boot:repackage` (`*-boot.jar`) | Yes — tests use the regular `.jar`, not the fat boot jar | -| `-Dpkg.skip.deb=true` | Gradle `buildDeb` + Maven `attach-artifact` | Yes — MSA docker modules copy the DEB from `target/` directly | +| `-Dpkg.skip.deb=true` | Gradle `buildDeb` | Yes — MSA docker modules copy the DEB from `target/` directly | | `-Dpkg.skip.rpm=true` | Gradle `buildRpm` | Yes — no test depends on the RPM | | `-Dpkg.skip.zip=true` | `maven-assembly-plugin` Windows ZIP | Yes — no test depends on the ZIP | +`-Dskip.yarn=true` and `-Dskip.ui.build=true` imply `-Dpkg.skip=true`: packages built without the UI are incomplete. + ## Testcontainers compatibility with the Docker API workaround In case your tests failed to run testcontainers due to unsupported Docker API version diff --git a/msa/js-executor/pom.xml b/msa/js-executor/pom.xml index 9457f16357..e20404eeda 100644 --- a/msa/js-executor/pom.xml +++ b/msa/js-executor/pom.xml @@ -30,6 +30,13 @@ package ${project.build.directory}/package/linux ${project.build.directory}/package/windows + + ${skip.yarn} pre-integration-test @@ -112,7 +119,7 @@ test - ${maven.test.skip} + ${yarn.test.skip} --mutex network run test @@ -206,6 +213,18 @@ + + skip-yarn-test + + + maven.test.skip + true + + + + true + + yarn-start diff --git a/msa/pom.xml b/msa/pom.xml index c1df4299c8..1741045be4 100644 --- a/msa/pom.xml +++ b/msa/pom.xml @@ -55,10 +55,7 @@ - + skip-deb @@ -71,9 +68,9 @@ none - + skip-pkg @@ -86,6 +83,31 @@ none + + + skip-pkg-without-yarn + + + skip.yarn + true + + + + none + + + + skip-pkg-without-ui-build + + + skip.ui.build + true + + + + none + + black-box-tests diff --git a/msa/web-ui/pom.xml b/msa/web-ui/pom.xml index 87bfedf4d6..6a92b66632 100644 --- a/msa/web-ui/pom.xml +++ b/msa/web-ui/pom.xml @@ -60,6 +60,9 @@ target ${basedir} + + ${skip.ui.build} diff --git a/pom.xml b/pom.xml index fa19da6659..e7dcea3164 100755 --- a/pom.xml +++ b/pom.xml @@ -28,20 +28,27 @@ 25 25 ${basedir} + + ${skip.yarn} none none false - + false @@ -50,11 +57,6 @@ module depends on the ZIP artifact, so this flag can be toggled freely without breaking downstream modules. --> false - - ${pkg.package.phase} thingsboard ${project.name} /var/log/${pkg.name} @@ -217,31 +219,46 @@ - + - skip-deb + skip-pkg - pkg.skip.deb + pkg.skip true - none + true + true + true + true - + - skip-pkg + skip-pkg-without-yarn - pkg.skip + skip.yarn + true + + + + true + true + true + true + + + + skip-pkg-without-ui-build + + + skip.ui.build true @@ -250,7 +267,6 @@ true true true - none @@ -540,21 +556,6 @@ - - org.apache.maven.plugins - maven-jar-plugin - - - **/logback.xml - - - - ${pkg.implementationTitle} - ${project.version} - - - - org.springframework.boot spring-boot-maven-plugin @@ -567,6 +568,8 @@ ${pkg.skip.bootjar} ${pkg.mainClass} boot + + false ZIP true true @@ -581,7 +584,6 @@ repackage - build-info @@ -643,28 +645,9 @@ ${pkg.skip.zip} - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-deb - ${pkg.deb.phase} - - attach-artifact - - - - - ${project.build.directory}/${pkg.name}.deb - deb - deb - - + + false @@ -720,6 +703,18 @@ org.apache.maven.plugins maven-jar-plugin ${jar-plugin.version} + + + + **/logback.xml + + + + ${pkg.implementationTitle} + ${project.version} + + + org.apache.maven.plugins @@ -730,6 +725,20 @@ org.springframework.boot spring-boot-maven-plugin ${spring-boot.version} + + + + build-info + + build-info + + + + false + + + org.thingsboard diff --git a/ui-ngx/pom.xml b/ui-ngx/pom.xml index e484d1bae1..671530e422 100644 --- a/ui-ngx/pom.xml +++ b/ui-ngx/pom.xml @@ -37,6 +37,9 @@ target ${basedir} + + ${skip.ui.build} @@ -71,6 +74,14 @@ + + + org.apache.maven.plugins + maven-deploy-plugin + + true + +