From 7349be38e52d83aa7e8ce44108eddbb94d4d80e3 Mon Sep 17 00:00:00 2001 From: David Turanski Date: Fri, 11 Dec 2020 10:06:23 -0500 Subject: [PATCH] Fix build and add integration profile --- .../couchbase-stream-applications/README.adoc | 5 ++ .../couchbase-sink/pom.xml | 78 ++++++++++--------- .../couchbase-stream-applications/pom.xml | 31 +++++++- 3 files changed, 77 insertions(+), 37 deletions(-) diff --git a/function-based-stream-app-samples/couchbase-stream-applications/README.adoc b/function-based-stream-app-samples/couchbase-stream-applications/README.adoc index 5209fe0..83775ce 100644 --- a/function-based-stream-app-samples/couchbase-stream-applications/README.adoc +++ b/function-based-stream-app-samples/couchbase-stream-applications/README.adoc @@ -11,4 +11,9 @@ This project includes the following modules: ```bash ./mvnw clean install +``` + +=== Build container image and run integration tests +```bash +./mvnw install -Pintegration ``` \ No newline at end of file diff --git a/function-based-stream-app-samples/couchbase-stream-applications/couchbase-sink/pom.xml b/function-based-stream-app-samples/couchbase-stream-applications/couchbase-sink/pom.xml index 54cc9d6..256a333 100644 --- a/function-based-stream-app-samples/couchbase-stream-applications/couchbase-sink/pom.xml +++ b/function-based-stream-app-samples/couchbase-stream-applications/couchbase-sink/pom.xml @@ -67,39 +67,53 @@ + + + integration + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + org.junit.jupiter + junit-jupiter-engine + 5.7.0 + + + + + integration + + *IntegrationTests.java + + true + + + + org.springframework.boot + spring-boot-maven-plugin + + + build-imagage + + build-image + + pre-integration-test + + + + + + + + - - org.apache.maven.plugins - maven-failsafe-plugin - - - org.junit.jupiter - junit-jupiter-engine - 5.7.0 - - - - - integration - - *IntegrationTests.java - - true - - org.springframework.boot spring-boot-maven-plugin - - - build-imagage - - build-image - - pre-integration-test - - org.springframework.cloud @@ -115,14 +129,6 @@ - - org.apache.maven.plugins - maven-surefire-plugin - - !integration - - - diff --git a/function-based-stream-app-samples/couchbase-stream-applications/pom.xml b/function-based-stream-app-samples/couchbase-stream-applications/pom.xml index 591137c..855307e 100644 --- a/function-based-stream-app-samples/couchbase-stream-applications/pom.xml +++ b/function-based-stream-app-samples/couchbase-stream-applications/pom.xml @@ -16,7 +16,7 @@ Demo Stream Applications project for Couchhbase - 11 + 8 2020.0.0-M5 1.86 3.0.10 @@ -78,5 +78,34 @@ + + + integration + + + + org.apache.maven.plugins + maven-surefire-plugin + + integration + + + + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + !integration + + + + +