Created
May 30, 2023 10:03
-
-
Save orpiske/690f343a7f913dbae9a6d6d278da715d 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 notify-pushover() { | |
# Add stuff here if you want to send notifications somewhere (i.e.: your cell phone) | |
} | |
function simpleTest() { | |
local testInfraDir=${BASE_DIR}/test-infra/camel-test-infra-$1 | |
local testComponent=${BASE_DIR}/components/camel-${2:-$1} | |
if [[ ! -d ${testInfraDir} ]] ; then | |
notify-pushover "Skipped build and tests for $1 because ${testInfraDir} does not exist" | |
return | |
fi | |
if [[ ! -d ${testComponent} ]] ; then | |
notify-pushover "Skipped build and tests for $1 because ${testComponent} does not exist" | |
return | |
fi | |
cd ${testInfraDir} | |
(mvn -Pfastinstall install && cd ${testComponent} && mvn clean verify && notify-pushover "$1 test completed successfully" || notify-pushover "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 | |
notify-pushover "Skipped build and tests for $1 because ${testInfraDir} does not exist" | |
return | |
fi | |
if [[ ! -d ${testComponent} ]] ; then | |
notify-pushover "Skipped build and tests for $1 because ${testComponent} does not exist" | |
return | |
fi | |
cd ${testInfraDir} | |
(mvn -Psourcecheck install && cd ${testComponent} && mvn -Psourcecheck clean verify && notify-pushover "$1 test completed successfully" || notify-pushover "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