File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed
Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,5 @@ services:
44 image : cimg/postgres:17.0
55 environment :
66 - POSTGRES_USER=root
7- - POSTGRES_DATABASE=codegen_test
8- - POSTGRES_PASSWORD=password
9- - POSTGRES_SCHEMA=codegen_integration_tests_postgres
107 ports :
118 - " 5432:5432"
Original file line number Diff line number Diff line change @@ -4,17 +4,6 @@ echo `pwd`
44cd integration_tests
55cp ci/sample.profiles.yml profiles.yml
66
7- export POSTGRES_HOST=localhost
8- export POSTGRES_USER=root
9- export DBT_ENV_SECRET_POSTGRES_PASS=password
10- export POSTGRES_PORT=5432
11- export POSTGRES_DATABASE=codegen_test
12- export POSTGRES_SCHEMA=codegen_integration_tests_postgres
13-
14- # Create database if it doesn't exist
15- PGPASSWORD=$DBT_ENV_SECRET_POSTGRES_PASS psql -h $POSTGRES_HOST -U $POSTGRES_USER -d postgres -tc " SELECT 1 FROM pg_database WHERE datname = '$POSTGRES_DATABASE '" | grep -q 1 || \
16- PGPASSWORD=$DBT_ENV_SECRET_POSTGRES_PASS psql -h $POSTGRES_HOST -U $POSTGRES_USER -d postgres -c " CREATE DATABASE $POSTGRES_DATABASE "
17-
187dbt --warn-error clean --target $1 || exit 1
198dbt --warn-error deps --target $1 || exit 1
209dbt --warn-error run-operation create_source_table --target $1 || exit 1
You can’t perform that action at this time.
0 commit comments