From 78f224d55996de50b05a6d5d6baa62937a227cba Mon Sep 17 00:00:00 2001
From: Mauricio Giacomini Girardello <mgg12@inf.ufpr.br>
Date: Tue, 15 Mar 2016 11:52:03 -0300
Subject: [PATCH] fixing before_script of gitlab-ci

---
 .gitlab-ci.yml | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3b32341a..fedbef25 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,21 +9,14 @@ variables:
 before_script:
   - apt-get update -y
   - 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;"
+  # gems
   - gem install bundler
   - bundle install --jobs $(nproc) --path=/cache/bundler
   - bundle exec rake db:create
 
-connect:
-  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;"
-  tags:
-    - ruby
-    - postgres
-    - elasticsearch
-    - redis
-
 test:
   stage: test
   script:
-- 
GitLab