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
16851284
Commit
16851284
authored
May 22, 2019
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EE] Fix MySQL CI jobs
[run mysql] Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
3526a2c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
12 deletions
+48
-12
.gitlab/ci/rails.gitlab-ci.yml
.gitlab/ci/rails.gitlab-ci.yml
+44
-6
scripts/prepare_build.sh
scripts/prepare_build.sh
+4
-6
No files found.
.gitlab/ci/rails.gitlab-ci.yml
View file @
16851284
...
...
@@ -188,6 +188,27 @@ rspec system mysql:
<<
:
*only-schedules-master
parallel
:
24
.rspec-mysql-on-demand
:
&rspec-mysql-on-demand
only
:
variables
:
-
$CI_COMMIT_MESSAGE =~ /\[run mysql\]/i
-
$CI_COMMIT_REF_NAME =~ /mysql/
rspec unit mysql on-demand
:
<<
:
*rspec-metadata-mysql
<<
:
*rspec-mysql-on-demand
parallel
:
20
rspec integration mysql on-demand
:
<<
:
*rspec-metadata-mysql
<<
:
*rspec-mysql-on-demand
parallel
:
6
rspec system mysql on-demand
:
<<
:
*rspec-metadata-mysql
<<
:
*rspec-mysql-on-demand
parallel
:
24
rspec-fast-spec-helper
:
<<
:
*rspec-metadata-pg
script
:
...
...
@@ -200,14 +221,15 @@ rspec-fast-spec-helper:
-
scripts/gitaly-test-spawn
-
bin/rspec --color --format documentation --tag quarantine -- spec/
rspec
-pg-quarantine
:
rspec
quarantine pg
:
<<
:
*rspec-metadata-pg
<<
:
*rspec-quarantine
allow_failure
:
true
rspec
-mysql-quarantine
:
rspec
quarantine mysql
:
<<
:
*rspec-metadata-mysql
<<
:
*rspec-quarantine
<<
:
*only-schedules-master
allow_failure
:
true
static-analysis
:
...
...
@@ -393,6 +415,21 @@ rspec system mysql ee:
<<
:
*only-schedules-master
parallel
:
5
rspec unit mysql ee on-demand
:
<<
:
*rspec-metadata-mysql-ee
<<
:
*rspec-mysql-on-demand
parallel
:
7
rspec integration mysql ee on-demand
:
<<
:
*rspec-metadata-mysql-ee
<<
:
*rspec-mysql-on-demand
parallel
:
3
rspec system mysql ee on-demand
:
<<
:
*rspec-metadata-mysql-ee
<<
:
*rspec-mysql-on-demand
parallel
:
5
.rspec-metadata-pg-geo
:
&rspec-metadata-pg-geo
<<
:
*rspec-metadata
stage
:
test
...
...
@@ -406,7 +443,7 @@ rspec system mysql ee:
-
scripts/gitaly-test-spawn
-
knapsack rspec "-Ispec --color --format documentation --format RspecJunitFormatter --out junit_rspec.xml --tag geo"
rspec
-pg-ee geo
:
rspec
geo pg ee
:
<<
:
*rspec-metadata-pg-geo
<<
:
*use-pg
parallel
:
3
...
...
@@ -415,7 +452,7 @@ rspec-pg-ee geo:
-
/(^docs[\/-].*|.*-docs$)/
-
/(^qa[\/-].*|.*-qa$)/
rspec
-pg-10-ee geo
:
rspec
geo pg-10 ee
:
<<
:
*rspec-metadata-pg-geo
<<
:
*use-pg-10
parallel
:
3
...
...
@@ -424,14 +461,14 @@ rspec-pg-10-ee geo:
-
/(^docs[\/-].*|.*-docs$)/
-
/(^qa[\/-].*|.*-qa$)/
quick-rspec
-pg-ee geo
:
quick-rspec
geo pg ee
:
<<
:
*rspec-metadata-pg-geo
<<
:
*use-pg
stage
:
quick-test
only
:
-
/(^geo[\/-].*|.*-geo$)/
quick-rspec
-pg-10-ee geo
:
quick-rspec
geo pg-10 ee
:
<<
:
*rspec-metadata-pg-geo
<<
:
*use-pg-10
stage
:
quick-test
...
...
@@ -453,6 +490,7 @@ rspec quarantine pg ee:
rspec quarantine mysql ee
:
<<
:
*rspec-quarantine-ee
<<
:
*rspec-metadata-mysql
<<
:
*only-schedules-master
.migration-paths-upgrade-ce-to-ee
:
&migration-paths-upgrade-ce-to-ee
extends
:
.dedicated-no-docs-and-no-qa-pull-cache-job
...
...
scripts/prepare_build.sh
View file @
16851284
...
...
@@ -17,12 +17,10 @@ cp config/gitlab.yml.example config/gitlab.yml
sed
-i
's/bin_path: \/usr\/bin\/git/bin_path: \/usr\/local\/bin\/git/'
config/gitlab.yml
# 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
-f1
-d
' '
|
cut
-f2
-d-
)
# This would make the default database postgresql, and we could also use
# pg to mean postgresql.
if
[
"
$GITLAB_DATABASE
"
!=
'mysql'
]
;
then
# This would make the default database postgresql.
if
[[
"
${
CI_JOB_NAME
#*mysql
}
"
!=
"
$CI_JOB_NAME
"
]]
;
then
export
GITLAB_DATABASE
=
'mysql'
else
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