From 0145ba5d6b87b88ed1823bfca173a1d8f1d8f98d Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sun, 28 Apr 2024 12:16:46 -0400 Subject: [PATCH] simplify test script --- docker/test.sh | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/docker/test.sh b/docker/test.sh index 99be17c76..74261233a 100755 --- a/docker/test.sh +++ b/docker/test.sh @@ -1,22 +1,19 @@ # - VERY rudimentary test script to run latest + specific branch image builds and test them all by running `--version` # TODO: create a real test suite +set -e -clear \ -&& echo "\n\n"\ -"########################################\n"\ -"##### Testing dbt-redshift latest #####\n"\ -"########################################\n"\ -&& docker build --tag dbt-redshift \ - --target dbt-redshift \ - docker \ -&& docker run dbt-redshift --version \ -\ -&& echo "\n\n"\ -"#########################################\n"\ -"##### Testing dbt-redshift-1.0.0b1 #####\n"\ -"#########################################\n"\ -&& docker build --tag dbt-redshift-1.0.0b1 \ - --target dbt-redshift \ - --build-arg commit_ref=v1.0.0b1 \ - docker \ -&& docker run dbt-redshift-1.0.0b1 --version +echo "\n\n" +echo "#######################################\n" +echo "##### Testing dbt-redshift latest #####\n" +echo "#######################################\n" + +docker build --tag dbt-redshift --target dbt-redshift docker +docker run dbt-redshift --version + +echo "\n\n" +echo "########################################\n" +echo "##### Testing dbt-redshift-1.0.0b1 #####\n" +echo "########################################\n" + +docker build --tag dbt-redshift-1.0.0b1 --target dbt-redshift --build-arg commit_ref=v1.0.0b1 docker +docker run dbt-redshift-1.0.0b1 --version