Skip to content

Commit

Permalink
Fix normalization integration tests in CI (#4910)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopheDuong committed Jul 27, 2021
1 parent 13bc08c commit 9038b5e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions settings.gradle
Expand Up @@ -71,6 +71,14 @@ if(!System.getenv().containsKey("SUB_BUILD") || System.getenv().get("SUB_BUILD")
include ':airbyte-integrations:connector-templates:generator'
include ':airbyte-integrations:bases:debezium'
include ':tools:code-generator'

// Needed by normalization integration tests
include ':airbyte-integrations:connectors:destination-bigquery'
include ':airbyte-integrations:connectors:destination-jdbc'
include ':airbyte-integrations:connectors:destination-mysql'
include ':airbyte-integrations:connectors:destination-postgres'
include ':airbyte-integrations:connectors:destination-redshift'
include ':airbyte-integrations:connectors:destination-snowflake'
}

// connectors
Expand Down
12 changes: 11 additions & 1 deletion tools/bin/ci_integration_test.sh
Expand Up @@ -13,7 +13,17 @@ if [[ "$connector" == "all" ]] ; then
echo "Running: ./gradlew --no-daemon --scan integrationTest"
./gradlew --no-daemon --scan integrationTest
else
if [[ "$connector" == *"connectors"* ]] || [[ "$connector" == *"bases"* ]]; then
if [[ "$connector" == *"base-normalization"* ]]; then
selected_integration_test="base-normalization"
integrationTestCommand="$(_to_gradle_path "airbyte-integrations/bases/base-normalization" integrationTest)"
export SUB_BUILD="CONNECTORS_BASE"
./gradlew --no-daemon --scan airbyteDocker
elif [[ "$connector" == *"bases"* ]]; then
connector_name=$(echo $connector | cut -d / -f 2)
selected_integration_test=$(echo "$all_integration_tests" | grep "^$connector_name$" || echo "")
integrationTestCommand="$(_to_gradle_path "airbyte-integrations/$connector" integrationTest)"
export SUB_BUILD="CONNECTORS_BASE"
elif [[ "$connector" == *"connectors"* ]]; then
connector_name=$(echo $connector | cut -d / -f 2)
selected_integration_test=$(echo "$all_integration_tests" | grep "^$connector_name$" || echo "")
integrationTestCommand="$(_to_gradle_path "airbyte-integrations/$connector" integrationTest)"
Expand Down

0 comments on commit 9038b5e

Please sign in to comment.