From 64034402ca7a5349a288a471949f4c92e18dff51 Mon Sep 17 00:00:00 2001 From: Ivan Gabriele Date: Fri, 7 Jun 2024 14:06:40 +0200 Subject: [PATCH] build(makefile): fix env file loading --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 55366f8..c074233 100644 --- a/Makefile +++ b/Makefile @@ -53,20 +53,20 @@ release-major: $(call RELEASE_TEMPLATE,major) test: - @$(source_env_if_not_ci) + @$(source_env_if_not_ci) && \ cargo test --no-fail-fast test-cover: - @$(source_env_if_not_ci) + @$(source_env_if_not_ci) && \ cargo llvm-cov test-doc: - @$(source_env_if_not_ci) + @$(source_env_if_not_ci) && \ cargo test --doc --no-fail-fast test-examples: - @$(source_env_if_not_ci) - @for example in $$(ls examples/*.rs | sed 's/examples\/\(.*\)\.rs/\1/'); do \ + @$(source_env_if_not_ci) && \ + for example in $$(ls examples/*.rs | sed 's/examples\/\(.*\)\.rs/\1/'); do \ echo "Running $$example"; \ cargo run --example $$example; \ done test-watch: - @source ./.env + @source ./.env && \ cargo watch -x "test -- --nocapture"