|
|
|
@ -21,6 +21,7 @@ STAGE_MONGODB="mongodb"
|
|
|
|
|
STAGE_SQLSERVER="sqlserver"
|
|
|
|
|
STAGE_TIDB="tidb"
|
|
|
|
|
STAGE_OCEANBASE="oceanbase"
|
|
|
|
|
STAGE_DB2="db2"
|
|
|
|
|
STAGE_E2E="e2e"
|
|
|
|
|
STAGE_MISC="misc"
|
|
|
|
|
|
|
|
|
@ -52,6 +53,10 @@ MODULES_OCEANBASE="\
|
|
|
|
|
flink-connector-oceanbase-cdc,\
|
|
|
|
|
flink-sql-connector-oceanbase-cdc"
|
|
|
|
|
|
|
|
|
|
MODULES_DB2="\
|
|
|
|
|
flink-connector-db2-cdc,\
|
|
|
|
|
flink-sql-connector-db2-cdc"
|
|
|
|
|
|
|
|
|
|
MODULES_E2E="\
|
|
|
|
|
flink-cdc-e2e-tests"
|
|
|
|
|
|
|
|
|
@ -80,6 +85,9 @@ function get_compile_modules_for_stage() {
|
|
|
|
|
(${STAGE_OCEANBASE})
|
|
|
|
|
echo "-pl $MODULES_OCEANBASE -am"
|
|
|
|
|
;;
|
|
|
|
|
(${STAGE_DB2})
|
|
|
|
|
echo "-pl $MODULES_DB2 -am"
|
|
|
|
|
;;
|
|
|
|
|
(${STAGE_E2E})
|
|
|
|
|
# compile everything; using the -am switch does not work with negated module lists!
|
|
|
|
|
# the negation takes precedence, thus not all required modules would be built
|
|
|
|
@ -103,6 +111,7 @@ function get_test_modules_for_stage() {
|
|
|
|
|
local modules_sqlserver=$MODULES_SQLSERVER
|
|
|
|
|
local modules_tidb=$MODULES_TIDB
|
|
|
|
|
local modules_oceanbase=$MODULES_OCEANBASE
|
|
|
|
|
local modules_db2=$MODULES_DB2
|
|
|
|
|
local modules_e2e=$MODULES_E2E
|
|
|
|
|
local negated_mysql=\!${MODULES_MYSQL//,/,\!}
|
|
|
|
|
local negated_postgres=\!${MODULES_POSTGRES//,/,\!}
|
|
|
|
@ -111,8 +120,9 @@ function get_test_modules_for_stage() {
|
|
|
|
|
local negated_sqlserver=\!${MODULES_SQLSERVER//,/,\!}
|
|
|
|
|
local negated_tidb=\!${MODULES_TIDB//,/,\!}
|
|
|
|
|
local negated_oceanbase=\!${MODULES_OCEANBASE//,/,\!}
|
|
|
|
|
local negated_db2=\!${MODULES_DB2//,/,\!}
|
|
|
|
|
local negated_e2e=\!${MODULES_E2E//,/,\!}
|
|
|
|
|
local modules_misc="$negated_mysql,$negated_postgres,$negated_oracle,$negated_mongodb,$negated_sqlserver,$negated_tidb,$negated_oceanbase,$negated_e2e"
|
|
|
|
|
local modules_misc="$negated_mysql,$negated_postgres,$negated_oracle,$negated_mongodb,$negated_sqlserver,$negated_tidb,$negated_oceanbase,$negated_db2,$negated_e2e"
|
|
|
|
|
|
|
|
|
|
case ${stage} in
|
|
|
|
|
(${STAGE_MYSQL})
|
|
|
|
@ -136,6 +146,9 @@ function get_test_modules_for_stage() {
|
|
|
|
|
(${STAGE_OCEANBASE})
|
|
|
|
|
echo "-pl $modules_oceanbase"
|
|
|
|
|
;;
|
|
|
|
|
(${STAGE_DB2})
|
|
|
|
|
echo "-pl $modules_db2"
|
|
|
|
|
;;
|
|
|
|
|
(${STAGE_E2E})
|
|
|
|
|
echo "-pl $modules_e2e"
|
|
|
|
|
;;
|
|
|
|
|