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