From 331426ade8a2b4fa5cd367b69584b6085741be6e Mon Sep 17 00:00:00 2001 From: Ian Rose Date: Fri, 27 Oct 2023 09:24:31 -0700 Subject: [PATCH] Update test script in light of subdirectory logic --- ci/test.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ci/test.sh b/ci/test.sh index aa6973d..232c643 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -9,6 +9,11 @@ PROJECT_NAME="sample-project" # Run copier. for TARGET in Snowflake BigQuery; do DIRECTORY=${PROJECT_NAME}-${TARGET} + + # Enter the new project + mkdir -p $DIRECTORY + pushd $DIRECTORY + copier copy \ --data project_name=$DIRECTORY \ --data friendly_project_name="$FRIENDLY_PROJECT_NAME" \ @@ -17,10 +22,7 @@ for TARGET in Snowflake BigQuery; do --data license=MIT \ --data dbt_target=$TARGET \ --data dbt_profile_name="default" \ - caldata-infrastructure-template/ . - - # Enter the new project - pushd $DIRECTORY + ../caldata-infrastructure-template/ . # Initialize git git init