Skip to content

Commit

Permalink
simplify test script
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Apr 28, 2024
1 parent d173e88 commit 0145ba5
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions docker/test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0145ba5

Please sign in to comment.