BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
91cb64bf
Commit
91cb64bf
authored
Jan 03, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sh-fix-seed-fu-ci' into 'master'
Fix `rake db:seed_fu` not doing anything in CI Closes #41517 See merge request gitlab-org/gitlab-ce!16146
parents
0f506f77
ad88e3f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
.gitlab-ci.yml
.gitlab-ci.yml
+3
-1
seeder.rb
lib/gitlab/seeder.rb
+1
-1
create_mysql_user.sh
scripts/create_mysql_user.sh
+1
-1
No files found.
.gitlab-ci.yml
View file @
91cb64bf
...
...
@@ -517,10 +517,12 @@ db:rollback-mysql:
SIZE
:
"
1"
SETUP_DB
:
"
false"
CREATE_DB_USER
:
"
true"
FIXTURE_PATH
:
db/fixtures/development
script
:
-
git clone https://gitlab.com/gitlab-org/gitlab-test.git
/home/git/repositories/gitlab-org/gitlab-test.git
-
bundle exec rake db:setup db:seed_fu
-
scripts/gitaly-test-spawn
-
force=yes bundle exec rake gitlab:setup
artifacts
:
when
:
on_failure
expire_in
:
1d
...
...
lib/gitlab/seeder.rb
View file @
91cb64bf
...
...
@@ -8,7 +8,7 @@ end
module
Gitlab
class
Seeder
def
self
.
quiet
mute_mailer
unless
Rails
.
env
.
test?
mute_mailer
SeedFu
.
quiet
=
true
...
...
scripts/create_mysql_user.sh
View file @
91cb64bf
#!/bin/bash
mysql
--user
=
root
--host
=
mysql
<<
EOF
CREATE DATABASE IF NOT EXISTS gitlabhq_test;
CREATE DATABASE IF NOT EXISTS gitlabhq_test
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci
;
CREATE USER IF NOT EXISTS 'gitlab'@'%';
GRANT ALL PRIVILEGES ON gitlabhq_test.* TO 'gitlab'@'%';
FLUSH PRIVILEGES;
...
...
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