From a1c227095605d013ddaf58283bace05d09f564c8 Mon Sep 17 00:00:00 2001 From: Jacob Beck Date: Wed, 15 Jul 2020 17:11:25 -0600 Subject: [PATCH] azure pipelines silently messing with $PATH again --- azure-pipelines.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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