Add flag to run tests for adapters-api and kafka / pulsar adapters

This commit is contained in:
Massimiliano Mirelli 2023-03-07 15:13:47 +02:00
parent 0a2ab1dcca
commit ef92631595
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,8 @@
#!/usr/local/bin/bash
: "${SKIP_TESTS:=1}"
(
cd "$(git rev-parse --show-toplevel)" && \
mvn clean install -DskipTests -pl adapters-api,adapter-kafka,nb5
mvn clean install "-DskipTests" -pl adapters-api,adapter-kafka,nb5 && \
[[ ${SKIP_TESTS} -ne 1 ]] && \
mvn test -pl adapters-api,adapter-pulsar
)

View File

@ -1,5 +1,8 @@
#!/usr/local/bin/bash
: "${SKIP_TESTS:=1}"
(
cd "$(git rev-parse --show-toplevel)" && \
mvn clean install -DskipTests -pl adapters-api,adapter-pulsar,nb5
mvn clean install "-DskipTests" -pl adapters-api,adapter-pulsar,nb5 && \
[[ ${SKIP_TESTS} -ne 1 ]] && \
mvn test -pl adapters-api,adapter-pulsar
)