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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
c78f03ae
Commit
c78f03ae
authored
Apr 10, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We cannot use array in yaml variables
parent
76e7d256
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
.gitlab-ci.yml
.gitlab-ci.yml
+0
-1
scripts/prepare_build.sh
scripts/prepare_build.sh
+6
-2
No files found.
.gitlab-ci.yml
View file @
c78f03ae
...
...
@@ -7,7 +7,6 @@ cache:
variables
:
MYSQL_ALLOW_EMPTY_PASSWORD
:
"
1"
GITLAB_DATABASE
:
$CI_JOB_NAME[1]
RAILS_ENV
:
"
test"
NODE_ENV
:
"
test"
SIMPLECOV
:
"
true"
...
...
scripts/prepare_build.sh
View file @
c78f03ae
...
...
@@ -2,11 +2,15 @@
.
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
:-
postgresql
}
export
GITLAB_DATABASE
=
${
GITLAB_DATABASE
:-
$job_name
}
export
USE_BUNDLE_INSTALL
=
${
USE_BUNDLE_INSTALL
:-
true
}
if
[
"
$GITLAB_DATABASE
"
=
'pg
'
]
;
then
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