Skip to content
Snippets Groups Projects
Commit 98264a9a authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

testing gitlab-ci

parent 3fec4148
No related branches found
No related tags found
No related merge requests found
services:
- postgres
variables:
# Configure postgres service (https://hub.docker.com/_/postgres/)
POSTGRES_DB: custom_db
POSTGRES_USER: custom_user
POSTGRES_PASSWORD: custom_pass
POSTGRES_DB: portalmec_test
DATABASE_URL: "postgresql://postgres:5432/portalmec_test"
before_script:
- apt-get update -y
- apt-get install default-jre postgresql-client -y
- gem install bundler
- bundle install --jobs $(nproc) --path=/cache/bundler
- unlink config/database.yml
- cp config/database.yml.gitlab config/database.yml
- bundle exec rake db:create
test:
......
......@@ -10,10 +10,7 @@ development: &development
password:
test:
<<: *defaults
database: portalmec_test
username:
password:
url: <%= ENV['DATABASE_URL'] %>
production:
<<: *defaults
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment