Skip to content

Commit

Permalink
remove dev settings from project.yaml after summary testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mxfactorial committed Nov 23, 2024
1 parent 92874cb commit 0c0ecdf
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion scripts/test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

PROJECT_CONF=project.yaml

# standard lint
cargo fmt --all -- --check
# clippy lint
Expand All @@ -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
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

0 comments on commit 0c0ecdf

Please sign in to comment.