Skip to content

Commit

Permalink
clean up test script
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed May 2, 2024
1 parent a7497e3 commit 5be5dba
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-postgres latest #####\n"\
"########################################\n"\
&& docker build --tag dbt-postgres \
--target dbt-postgres \
docker \
&& docker run dbt-postgres --version \
\
&& echo "\n\n"\
"#########################################\n"\
"##### Testing dbt-postgres-1.0.0b1 #####\n"\
"#########################################\n"\
&& docker build --tag dbt-postgres-1.0.0b1 \
--target dbt-postgres \
--build-arg commit_ref=v1.0.0b1 \
docker \
&& docker run dbt-postgres-1.0.0b1 --version
echo "\n\n"
echo "#######################################"
echo "##### Testing dbt-postgres latest #####"
echo "#######################################"

docker build --tag dbt-postgres --target dbt-postgres docker
docker run dbt-postgres --version

echo "\n\n"
echo "########################################"
echo "##### Testing dbt-postgres-1.0.0b1 #####"
echo "########################################"

docker build --tag dbt-postgres-1.0.0b1 --target dbt-postgres --build-arg commit_ref=v1.0.0b1 docker
docker run dbt-postgres-1.0.0b1 --version

0 comments on commit 5be5dba

Please sign in to comment.