Created
December 4, 2023 15:53
-
-
Save orpiske/1f57b930d4e55fb251428b383a31977e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
BASE_DIR=$(pwd) | |
function simpleTest() { | |
local testInfraDir=${BASE_DIR}/test-infra/camel-test-infra-$1 | |
local testComponent=${BASE_DIR}/components/camel-${2:-$1} | |
if [[ ! -d ${testInfraDir} ]] ; then | |
echo "Skipped build and tests for $1 because ${testInfraDir} does not exist" | |
return | |
fi | |
if [[ ! -d ${testComponent} ]] ; then | |
echo "Skipped build and tests for $1 because ${testComponent} does not exist" | |
return | |
fi | |
cd ${testInfraDir} | |
(mvn -Pfastinstall -Dquickly install && cd ${testComponent} && mvn clean verify && echo "$1 test completed successfully" || echo "Failed $1") | |
cd .. | |
} | |
function simpleTestInGroup() { | |
local testInfraDir=${BASE_DIR}/test-infra/camel-test-infra-$1 | |
local testComponent=${BASE_DIR}/components/camel-${2}/camel-${3:-$1} | |
if [[ ! -d ${testInfraDir} ]] ; then | |
echo "Skipped build and tests for $1 because ${testInfraDir} does not exist" | |
return | |
fi | |
if [[ ! -d ${testComponent} ]] ; then | |
echo "Skipped build and tests for $1 because ${testComponent} does not exist" | |
return | |
fi | |
cd ${testInfraDir} | |
(mvn -Psourcecheck install && cd ${testComponent} && mvn -Psourcecheck clean verify && echo "$1 test completed successfully" || echo "Failed $1") | |
cd .. | |
} | |
simpleTest jetty atom | |
simpleTest jetty camel-atmosphere-websocket | |
simpleTest artemis amqp | |
simpleTest artemis jms | |
simpleTest artemis mllp | |
simpleTest artemis paho | |
simpleTest artemis sjms | |
simpleTest artemis stomp | |
simpleTest arangodb | |
simpleTest aws-v2 aws | |
simpleTestInGroup azure-storage-blob azure | |
simpleTestInGroup azure-storage-queue azure | |
simpleTestInGroup azure-storage-datalake azure | |
simpleTest cassandra cassandraql | |
simpleTest consul | |
simpleTest couchbase | |
simpleTest couchdb | |
simpleTest elasticsearch elasticsearch | |
simpleTest etcd3 | |
simpleTest fhir | |
simpleTest ftp | |
simpleTest google-pubsub | |
simpleTest hashicorp-vault | |
simpleTest hdfs | |
simpleTest ignite | |
simpleTest infinispan | |
simpleTest jdbc pgevent | |
simpleTest kafka | |
simpleTest minio | |
simpleTest mongodb | |
simpleTest mosquitto paho-mqtt5 | |
simpleTest nats | |
simpleTest postgres pg-replication-slot | |
simpleTest pulsar | |
simpleTest rabbitmq spring-rabbitmq | |
simpleTest redis | |
simpleTest xmpp | |
simpleTest zookeeper | |
simpleTest zookeeper zookeeper-master | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment