diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3218533c21af282cb9dd9218efe24cc79be69dfe..2d4fd187f0cf16d6c709f3bab4bcd8cd95574b76 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,12 +15,13 @@ variables: POSTGRES_HOST_AUTH_METHOD: trust default-postgres: - services: - - postgres - image: postgres - variables: - PGPORT: "5432" - script: + services: + - postgres + image: postgres + variables: + PGPORT: "5432" + + script: # official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html - export PGPASSWORD=$POSTGRES_PASSWORD - psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;"