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
fd09311d
Commit
fd09311d
authored
Aug 17, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update fixtures to add a created status to pipeline
parent
5caf1066
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
db/fixtures/development/14_builds.rb
db/fixtures/development/14_builds.rb
+4
-5
No files found.
db/fixtures/development/14_builds.rb
View file @
fd09311d
class
Gitlab::Seeder::Builds
STAGES
=
%w[build
notify_build test notify_test deploy notify_deplo
y]
STAGES
=
%w[build
test deploy notif
y]
BUILDS
=
[
{
name:
'build:linux'
,
stage:
'build'
,
status: :success
},
{
name:
'build:osx'
,
stage:
'build'
,
status: :success
},
{
name:
'slack post build'
,
stage:
'notify_build'
,
status: :success
},
{
name:
'rspec:linux'
,
stage:
'test'
,
status: :success
},
{
name:
'rspec:windows'
,
stage:
'test'
,
status: :success
},
{
name:
'rspec:windows'
,
stage:
'test'
,
status: :success
},
...
...
@@ -12,9 +11,9 @@ class Gitlab::Seeder::Builds
{
name:
'spinach:osx'
,
stage:
'test'
,
status: :canceled
},
{
name:
'cucumber:linux'
,
stage:
'test'
,
status: :running
},
{
name:
'cucumber:osx'
,
stage:
'test'
,
status: :failed
},
{
name:
'slack post test'
,
stage:
'notify_test'
,
status: :success
},
{
name:
'staging'
,
stage:
'deploy'
,
environment:
'staging'
,
status: :success
},
{
name:
'production'
,
stage:
'deploy'
,
environment:
'production'
,
when:
'manual'
,
status: :success
},
{
name:
'production'
,
stage:
'deploy'
,
environment:
'production'
,
when:
'manual'
,
status: :skipped
},
{
name:
'slack'
,
stage:
'notify'
,
when:
'manual'
,
status: :created
},
]
def
initialize
(
project
)
...
...
@@ -25,7 +24,7 @@ class Gitlab::Seeder::Builds
pipelines
.
each
do
|
pipeline
|
begin
BUILDS
.
each
{
|
opts
|
build_create!
(
pipeline
,
opts
)
}
commit_status_create!
(
pipeline
,
name:
'jenkins'
,
status: :success
)
commit_status_create!
(
pipeline
,
name:
'jenkins'
,
sta
ge:
'test'
,
sta
tus: :success
)
print
'.'
rescue
ActiveRecord
::
RecordInvalid
print
'F'
...
...
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