Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5e6d09ed
Commit
5e6d09ed
authored
Apr 11, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just set GITLAB_DATABASE in the script
parent
1b14a8d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
.gitlab-ci.yml
.gitlab-ci.yml
+0
-2
scripts/prepare_build.sh
scripts/prepare_build.sh
+1
-5
No files found.
.gitlab-ci.yml
View file @
5e6d09ed
...
...
@@ -315,7 +315,6 @@ rake mysql db:rollback:
/home/git/repositories/gitlab-org/gitlab-test.git
-
bundle exec rake db:setup db:seed_fu
variables
:
GITLAB_DATABASE
:
$CI_JOB_NAME[1]
SIZE
:
"
1"
SETUP_DB
:
"
false"
RAILS_ENV
:
"
development"
...
...
@@ -435,7 +434,6 @@ bundler:audit:
-
source scripts/prepare_build.sh
-
bundle exec rake db:migrate
variables
:
GITLAB_DATABASE
:
$CI_JOB_NAME[1]
SETUP_DB
:
"
false"
migration pg paths
:
...
...
scripts/prepare_build.sh
View file @
5e6d09ed
...
...
@@ -2,12 +2,8 @@
.
scripts/utils.sh
echo
$CI_JOB_NAME
job_name
=
$(
echo
$CI_JOB_NAME
|
cut
-f2
-d
' '
)
echo
$job_name
export
SETUP_DB
=
${
SETUP_DB
:-
true
}
export
GITLAB_DATABASE
=
$
{
GITLAB_DATABASE
:-
$job_name
}
export
GITLAB_DATABASE
=
$
(
echo
$CI_JOB_NAME
|
cut
-f2
-d
' '
)
export
USE_BUNDLE_INSTALL
=
${
USE_BUNDLE_INSTALL
:-
true
}
if
[
"
$GITLAB_DATABASE
"
!=
'mysql'
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment