smoke test with env var sourcing included
This commit is contained in:
parent
74222a0007
commit
65e2dea2fc
1 changed files with 3 additions and 0 deletions
|
|
@ -19,5 +19,8 @@ steps:
|
||||||
displayName: 'Load env'
|
displayName: 'Load env'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
|
cp ~/dbt-ci/.env .
|
||||||
|
echo "POSTGRES_DATABASE=${BUILD_SOURCEBRANCH#refs/heads/}" >> .env
|
||||||
|
set -a && source .env && set +a
|
||||||
psql -h $POSTGRES_HOST -U $POSTGRES_USER -d postgres -c "SELECT 1 FROM pg_database WHERE datname = 'postgres';"
|
psql -h $POSTGRES_HOST -U $POSTGRES_USER -d postgres -c "SELECT 1 FROM pg_database WHERE datname = 'postgres';"
|
||||||
displayName: 'Smoke test Postgres connection'
|
displayName: 'Smoke test Postgres connection'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue