Skip to content

Commit

Permalink
Skip unit tests when run-tests is false (#16267)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuliren committed Sep 2, 2022
1 parent 82ceb8a commit 59cba50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/integrations/manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ cmd_build() {
# Note that we are only building (and testing) once on this build machine's architecture
# Learn more @ https://github.com/airbytehq/airbyte/pull/13004
./gradlew --no-daemon "$(_to_gradle_path "$path" clean)"
./gradlew --no-daemon "$(_to_gradle_path "$path" build)"

if [ "$run_tests" = false ] ; then
echo "Skipping integration tests..."
echo "Building and skipping unit tests + integration tests..."
./gradlew --no-daemon "$(_to_gradle_path "$path" build)" -x test
else
echo "Running integration tests..."
echo "Building and running unit tests + integration tests..."
./gradlew --no-daemon "$(_to_gradle_path "$path" build)"

if test "$path" == "airbyte-integrations/bases/base-normalization"; then
./gradlew --no-daemon --scan :airbyte-integrations:bases:base-normalization:airbyteDocker
Expand Down

0 comments on commit 59cba50

Please sign in to comment.