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
11ef3154
Commit
11ef3154
authored
Apr 13, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always use . and add more comments to prepare_build.sh
parent
e1bc7577
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
scripts/prepare_build.sh
scripts/prepare_build.sh
+6
-1
No files found.
.gitlab-ci.yml
View file @
11ef3154
...
...
@@ -431,7 +431,7 @@ bundler:audit:
-
bundle exec rake db:drop db:create db:schema:load db:seed_fu
-
git checkout $CI_COMMIT_SHA
-
bundle install --without production --jobs $(nproc) $FLAGS --retry=3
-
source
scripts/prepare_build.sh
-
.
scripts/prepare_build.sh
-
bundle exec rake db:migrate
migration pg paths
:
...
...
scripts/prepare_build.sh
View file @
11ef3154
...
...
@@ -3,9 +3,14 @@
.
scripts/utils.sh
export
SETUP_DB
=
${
SETUP_DB
:-
true
}
export
GITLAB_DATABASE
=
$(
echo
$CI_JOB_NAME
|
cut
-f2
-d
' '
)
export
USE_BUNDLE_INSTALL
=
${
USE_BUNDLE_INSTALL
:-
true
}
# Determine the database by looking at the job name.
# For example, we'll get pg if the job is `rspec pg 19 20`
export
GITLAB_DATABASE
=
$(
echo
$CI_JOB_NAME
|
cut
-f2
-d
' '
)
# This would make the default database postgresql, and we could also use
# pg to mean postgresql.
if
[
"
$GITLAB_DATABASE
"
!=
'mysql'
]
;
then
export
GITLAB_DATABASE
=
'postgresql'
fi
...
...
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