Forked from
PortalMEC / portalmec
1894 commits behind the upstream repository.
-
Mauricio Giacomini Girardello authoredMauricio Giacomini Girardello authored
.gitlab-ci.yml 733 B
services:
- postgres
variables:
POSTGRES_DB: portalmec_test
POSTGRES_USER: custom_user
POSTGRES_PASSWORD: custom_pass
connect:
image: postgres
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;"
#before_script:
# - apt-get update -y
# - apt-get install default-jre postgresql-client -y
# - gem install bundler
# - bundle install --jobs $(nproc) --path=/cache/bundler
# - bundle exec rake db:create
#test:
# stage: test
# script:
# - rake test
# tags:
# - ruby
# - postgres
# - elasticsearch
# - redis