diff options
author | Ruslan Kashapov <ruslan.kashapov@pantheon.tech> | 2020-12-17 10:38:53 +0200 |
---|---|---|
committer | Ruslan Kashapov <ruslan.kashapov@pantheon.tech> | 2020-12-17 11:11:27 +0000 |
commit | bf02f2083a6e55874eb7852f9eeedaaa7a491804 (patch) | |
tree | b14931dd161b35e05e46e11b49b5528fec752fd4 /cps-parent | |
parent | 7b72ea0713dbfededd1a773e9d9b90ea0b08e045 (diff) |
Enable tests using test containers on jenkins
Issue-ID: CPS-124
Change-Id: I77f6242490c1b149a3f3cdd78aa2b349ace95896
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Diffstat (limited to 'cps-parent')
-rw-r--r-- | cps-parent/pom.xml | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml index 9c1760cf23..55db1a198e 100644 --- a/cps-parent/pom.xml +++ b/cps-parent/pom.xml @@ -94,26 +94,6 @@ </pluginManagement> </build> </profile> - <profile> - <id>skip-db-tests</id> - <activation> - <!-- exclude module tests by default till Jenkins is configured to support test containers --> - <activeByDefault>true</activeByDefault> - </activation> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <excludes> - <exclude>**/spi/impl/*Test.java</exclude> - </excludes> - </configuration> - </plugin> - </plugins> - </build> - </profile> </profiles> <dependencyManagement> @@ -334,6 +314,14 @@ <excludes> <exclude>**/IT*.java</exclude> </excludes> + <environmentVariables> + <!-- + disable privileged container usage to cleanup the test containers; + these will be removed automatically on jvm termination; + see https://www.testcontainers.org/features/configuration/#disabling-ryuk + --> + <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED> + </environmentVariables> </configuration> </plugin> <plugin> |