Skip to content

Commit

Permalink
skip integration tests if CI_TEST_SQL_DB_ENDPOINT not defined
Browse files Browse the repository at this point in the history
Change-Id: Ib5ba5a5a476e0e85074d12879ee9fb094f3e7270
  • Loading branch information
s-kipnis committed Oct 19, 2023
1 parent d6a022f commit 934b048
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/check-sql/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 934b048

Please sign in to comment.