Skip to content

Commit

Permalink
Update test script in light of subdirectory logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-r-rose committed Oct 27, 2023
1 parent d60438e commit 331426a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -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
Expand Down

0 comments on commit 331426a

Please sign in to comment.