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: variables:
# Configure postgres service (https://hub.docker.com/_/postgres/) POSTGRES_DB: portalmec_test
POSTGRES_DB: custom_db DATABASE_URL: "postgresql://postgres:5432/portalmec_test"
POSTGRES_USER: custom_user
POSTGRES_PASSWORD: custom_pass
before_script: before_script:
- apt-get update -y
- apt-get install default-jre postgresql-client -y
- gem install bundler - gem install bundler
- bundle install --jobs $(nproc) --path=/cache/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 - bundle exec rake db:create
test: test:
......
...@@ -10,10 +10,7 @@ development: &development ...@@ -10,10 +10,7 @@ development: &development
password: password:
test: test:
<<: *defaults url: <%= ENV['DATABASE_URL'] %>
database: portalmec_test
username:
password:
production: production:
<<: *defaults <<: *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