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
3c6fee70
Commit
3c6fee70
authored
Jul 17, 2019
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE-EE parity for pipelines development fixture
parent
8073b055
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
db/fixtures/development/14_pipelines.rb
db/fixtures/development/14_pipelines.rb
+13
-1
No files found.
db/fixtures/development/14_pipelines.rb
View file @
3c6fee70
...
@@ -79,7 +79,15 @@ class Gitlab::Seeder::Pipelines
...
@@ -79,7 +79,15 @@ class Gitlab::Seeder::Pipelines
def
create_master_pipelines
def
create_master_pipelines
@project
.
repository
.
commits
(
'master'
,
limit:
4
).
map
do
|
commit
|
@project
.
repository
.
commits
(
'master'
,
limit:
4
).
map
do
|
commit
|
create_pipeline!
(
@project
,
'master'
,
commit
)
create_pipeline!
(
@project
,
'master'
,
commit
).
tap
do
|
pipeline
|
random_pipeline
.
tap
do
|
triggered_by_pipeline
|
triggered_by_pipeline
.
sourced_pipelines
.
create
(
source_job:
triggered_by_pipeline
.
builds
.
all
.
sample
,
source_project:
triggered_by_pipeline
.
project
,
project:
pipeline
.
project
,
pipeline:
pipeline
)
end
end
end
end
rescue
rescue
[]
[]
...
@@ -231,6 +239,10 @@ class Gitlab::Seeder::Pipelines
...
@@ -231,6 +239,10 @@ class Gitlab::Seeder::Pipelines
@project
.
team
.
users
.
sample
@project
.
team
.
users
.
sample
end
end
def
random_pipeline
Ci
::
Pipeline
.
limit
(
4
).
all
.
sample
end
def
build_status
def
build_status
Ci
::
Build
::
AVAILABLE_STATUSES
.
sample
Ci
::
Build
::
AVAILABLE_STATUSES
.
sample
end
end
...
...
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