diff --git a/packages/check-sql/run b/packages/check-sql/run index 5d715944aab..f5e87b55938 100755 --- a/packages/check-sql/run +++ b/packages/check-sql/run @@ -157,13 +157,17 @@ main() { # and we can call this script from everywhere. cd -- "${BASH_SOURCE%/*}" parse_options "$@" + if [ -z ${CI_TEST_SQL_DB_ENDPOINT+x} ]; then + echo "NOT DEFINED, skipping integration tests" + TESTS_SKIP="--lib" + fi test ${RUN_SETUP_ENVIRONMENT} = yes && run_setup_environment test ${RUN_CLEAN} = yes && cargo clean test ${RUN_CHECK_FORMAT} = yes && cargo fmt -- --check # TODO: Re-evaluate usage of --all-targets below test ${RUN_BUILD} = yes && cargo build --release --all-targets test ${RUN_BUILD_UNIT_TESTS} = yes && cargo test --release --all-targets --no-run - test ${RUN_UNIT_TESTS} = yes && RUST_BACKTRACE=1 cargo test --release --all-targets + test ${RUN_UNIT_TESTS} = yes && RUST_BACKTRACE=1 cargo test --release --all-targets "${TESTS_SKIP}" test ${RUN_CLIPPY} = yes && cargo clippy --release --all-targets -- --deny warnings test ${RUN_FORMAT} = yes && cargo fmt test ${RUN_DOCUMENTATION} = yes && cargo doc --release --lib --bin --examples