forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request quarkusio#16250 from famod/rr-testsuite-wrap
Introduce tcks/resteasy-reactive, wrapping the testsuite repo
- Loading branch information
Showing
6 changed files
with
393 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Resteasy Reactive Testuite Wrapper | ||
|
||
This Maven module wraps the execution of https://github.com/quarkusio/resteasy-reactive-testsuite | ||
to leverage incremental build mechanics and to make it easier to run locally. | ||
|
||
That repo will be cloned and executed via a separate mvn call when running `mvn test`. | ||
|
||
The Git ref is pinned in `pom.xml` and can be changed conveniently via `./update-ref.sh <new-ref>`. | ||
|
||
If dependencies were changed in the testuite repo make sure to run `./update-dependencies.sh` | ||
to ensure proper build order. | ||
|
||
`mvn clean ...` will remove the cloned repo so better use `mvn test -Dresteasy-reactive-testsuite.clone.skip` | ||
to save some time in case you want to run the suite multiple times. | ||
|
||
More properties: | ||
- `resteasy-reactive-testsuite.checkout.skip` skips (re-)checking out the respective ref | ||
- `resteasy-reactive-testsuite.test.skip` skips the execution of the suite | ||
- `resteasy-reactive-testsuite.repo.org` can be used to target a fork | ||
- `resteasy-reactive-testsuite.repo.ref` defines the ref to check out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,254 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-tck-parent</artifactId> | ||
<version>999-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>quarkus-tck-resteasy-reactive</artifactId> | ||
<name>Quarkus - TCK - RestEasy Reactive</name> | ||
|
||
<properties> | ||
|
||
<!-- to avoid sudden surprises, checkout is pinned to a specific commit --> | ||
<resteasy-reactive-testsuite.repo.ref>531734d28f1fcb39d369c1d2fae0a0f90a4ab9dc</resteasy-reactive-testsuite.repo.ref> | ||
|
||
<exec.skip>${skipTests}</exec.skip> | ||
<resteasy-reactive-testsuite.clone.skip>${exec.skip}</resteasy-reactive-testsuite.clone.skip> | ||
<resteasy-reactive-testsuite.checkout.skip>${exec.skip}</resteasy-reactive-testsuite.checkout.skip> | ||
<resteasy-reactive-testsuite.test.skip>${exec.skip}</resteasy-reactive-testsuite.test.skip> | ||
|
||
<!-- careful when changing the workdir, it's referenced in update-dependencies.sh as well --> | ||
<resteasy-reactive-testsuite.workdir>${project.build.directory}/testsuite</resteasy-reactive-testsuite.workdir> | ||
<resteasy-reactive-testsuite.repo.org>quarkusio</resteasy-reactive-testsuite.repo.org> | ||
<resteasy-reactive-testsuite.repo.url>https://github.com/${resteasy-reactive-testsuite.repo.org}/resteasy-reactive-testsuite</resteasy-reactive-testsuite.repo.url> | ||
|
||
<resteasy-reactive-testsuite.mvn.args></resteasy-reactive-testsuite.mvn.args> | ||
</properties> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>exec-maven-plugin</artifactId> | ||
<configuration> | ||
<workingDirectory>${resteasy-reactive-testsuite.workdir}</workingDirectory> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>clone</id> | ||
<phase>generate-test-resources</phase> | ||
<goals> | ||
<goal>exec</goal> | ||
</goals> | ||
<configuration> | ||
<executable>git</executable> | ||
<commandlineArgs>clone ${resteasy-reactive-testsuite.repo.url} ${resteasy-reactive-testsuite.workdir}</commandlineArgs> | ||
<skip>${resteasy-reactive-testsuite.clone.skip}</skip> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>checkout</id> | ||
<phase>process-test-resources</phase> | ||
<goals> | ||
<goal>exec</goal> | ||
</goals> | ||
<configuration> | ||
<executable>git</executable> | ||
<commandlineArgs>checkout ${resteasy-reactive-testsuite.repo.ref}</commandlineArgs> | ||
<skip>${resteasy-reactive-testsuite.checkout.skip}</skip> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>test</id> | ||
<phase>test</phase> | ||
<goals> | ||
<goal>exec</goal> | ||
</goals> | ||
<configuration> | ||
<executable>mvn</executable> | ||
<commandlineArgs>-e -B --settings ${session.request.userSettingsFile.path} clean install ${resteasy-reactive-testsuite.mvn.args}</commandlineArgs> | ||
<skip>${resteasy-reactive-testsuite.test.skip}</skip> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<dependencies> | ||
<!-- All the following dependencies shall enforce the right build order | ||
and proper upstream/downstream detection for incremental build. | ||
They won't have an actual impact on "inner" gradle execution. --> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-maven-plugin</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
</dependency> | ||
<!-- The following dependencies are generated in a way that is consistent with other normal IT modules, | ||
that is "runtime" deps are defined with scope compile and "minimal extension deployment dependencies" | ||
come in the usual form (pom, test, exclusions). This also ensures to keep the enforcer rules happy. --> | ||
<!-- START update-dependencies.sh --> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-arc</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-elytron-security-properties-file</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-hibernate-validator</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-jaxb</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-jaxrs-client-reactive</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-junit5</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-junit5-internal</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-resteasy-reactive</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-resteasy-reactive-jsonb</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-arc-deployment</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>*</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-core-deployment</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>*</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-elytron-security-properties-file-deployment</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>*</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-hibernate-validator-deployment</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>*</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-jaxb-deployment</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>*</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-jaxrs-client-reactive-deployment</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>*</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-resteasy-reactive-deployment</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>*</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-resteasy-reactive-jsonb-deployment</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>*</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<!-- END update-dependencies.sh --> | ||
</dependencies> | ||
</project> |
Oops, something went wrong.