Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Fernando Heise Ferreira
cleaning-portalmec
Commits
98264a9a
Commit
98264a9a
authored
9 years ago
by
Mauricio Giacomini Girardello
Browse files
Options
Downloads
Patches
Plain Diff
testing gitlab-ci
parent
3fec4148
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+7
-6
7 additions, 6 deletions
.gitlab-ci.yml
config/database.yml
+1
-4
1 addition, 4 deletions
config/database.yml
with
8 additions
and
10 deletions
.gitlab-ci.yml
+
7
−
6
View file @
98264a9a
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
:
...
...
This diff is collapsed.
Click to expand it.
config/database.yml
+
1
−
4
View file @
98264a9a
...
...
@@ -10,10 +10,7 @@ development: &development
password
:
test
:
<<
:
*defaults
database
:
portalmec_test
username
:
password
:
url
:
<%= ENV['DATABASE_URL'] %>
production
:
<<
:
*defaults
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment