diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cc16b442b0a7daf534627aad68f68d8bc238183b..4dcdceab492bf7409037d160ef9b1e126f5a3e0a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,5 @@ services: - postgres -tags: - - ruby - - postgres - - elasticsearch - - redis variables: POSTGRES_DB: portalmec_test @@ -14,10 +9,15 @@ variables: connect: #image: postgres script: - - apt-get install default-jre postgresql-client -y - # 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;" + - apt-get install default-jre postgresql-client -y + # 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;" + tags: + - ruby + - postgres + - elasticsearch + - redis #before_script: