diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e4098a22b48..213ddab040f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -37,13 +37,13 @@ jobs: Set-Service -InputObject $serviceName -StartupType Automatic Start-Service -InputObject $serviceName - createdb.exe -U postgres dbt - psql.exe -U postgres -c "CREATE ROLE root WITH PASSWORD 'password';" - psql.exe -U postgres -c "ALTER ROLE root WITH LOGIN;" - psql.exe -U postgres -c "GRANT CREATE, CONNECT ON DATABASE dbt TO root WITH GRANT OPTION;" - psql.exe -U postgres -c "CREATE ROLE noaccess WITH PASSWORD 'password' NOSUPERUSER;" - psql.exe -U postgres -c "ALTER ROLE noaccess WITH LOGIN;" - psql.exe -U postgres -c "GRANT CONNECT ON DATABASE dbt TO noaccess;" + & $env:PGBIN\createdb.exe -U postgres dbt + & $env:PGBIN\psql.exe -U postgres -c "CREATE ROLE root WITH PASSWORD 'password';" + & $env:PGBIN\psql.exe -U postgres -c "ALTER ROLE root WITH LOGIN;" + & $env:PGBIN\psql.exe -U postgres -c "GRANT CREATE, CONNECT ON DATABASE dbt TO root WITH GRANT OPTION;" + & $env:PGBIN\psql.exe -U postgres -c "CREATE ROLE noaccess WITH PASSWORD 'password' NOSUPERUSER;" + & $env:PGBIN\psql.exe -U postgres -c "ALTER ROLE noaccess WITH LOGIN;" + & $env:PGBIN\psql.exe -U postgres -c "GRANT CONNECT ON DATABASE dbt TO noaccess;" displayName: Install postgresql and set up database - task: UsePythonVersion@0