From 0c0ecdf8b3753393fb88be8b4d31537ceabc345a Mon Sep 17 00:00:00 2001 From: max funk Date: Fri, 22 Nov 2024 17:33:31 -0700 Subject: [PATCH] remove dev settings from project.yaml after summary testing --- scripts/test-all.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/test-all.sh b/scripts/test-all.sh index c59f781b..97112677 100644 --- a/scripts/test-all.sh +++ b/scripts/test-all.sh @@ -2,6 +2,8 @@ set -e +PROJECT_CONF=project.yaml + # standard lint cargo fmt --all -- --check # clippy lint @@ -13,4 +15,16 @@ make --no-print-directory -C crates/pg test-db # test integration make --no-print-directory -C tests test-local # test client -make --no-print-directory -C client test \ No newline at end of file +make --no-print-directory -C client test + +echo '' +echo "*** removing $PROJECT_CONF development settings" +if [[ $(uname -s) == "Darwin" ]]; then + sed -i '' 's/rust_log:.*/rust_log: off/' $PROJECT_CONF +else + sed -i 's/rust_log:.*/rust_log: off/' $PROJECT_CONF +fi +# use yq to set .client.env_var.set.GOOGLE_MAPS_API_KEY.default to null +yq -i '.client.env_var.set.GOOGLE_MAPS_API_KEY.default = null' $PROJECT_CONF +# remove empty line at end of project.yaml +printf %s "$(cat $PROJECT_CONF)" >$PROJECT_CONF