Skip to content

Commit

Permalink
Merge pull request #35 from calogica/refactor/test-script
Browse files Browse the repository at this point in the history
Makes test script more flexible
  • Loading branch information
clausherther authored Apr 8, 2021
2 parents 4de1d12 + 31e8ff2 commit 71ffba1
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions integration_tests/test.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
dbt run --target bq &&
dbt test --target bq &&
if [[ $# -gt 0 ]]
then

dbt run --target snowflake &&
dbt test --target snowflake &&
i=1;
for t in "$@"
do

dbt run --target spark &&
dbt test --target spark
dbt seed -t $t &&
dbt run -t $t &&
dbt test -t $t

done

else
echo "Please specify one or more targets as command-line arguments, i.e. test.sh bq snowflake"
fi

0 comments on commit 71ffba1

Please sign in to comment.