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
e08bcb21
Commit
e08bcb21
authored
Sep 26, 2020
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speed up pipeline seed build spec
parent
d4628f0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/lib/gitlab/ci/pipeline/seed/build_spec.rb
spec/lib/gitlab/ci/pipeline/seed/build_spec.rb
+5
-5
No files found.
spec/lib/gitlab/ci/pipeline/seed/build_spec.rb
View file @
e08bcb21
...
...
@@ -3,9 +3,9 @@
require
'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Pipeline
::
Seed
::
Build
do
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:head_sha
)
{
project
.
repository
.
head_commit
.
id
}
let
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
project:
project
,
sha:
head_sha
)
}
let
_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let
_it_be
(
:head_sha
)
{
project
.
repository
.
head_commit
.
id
}
let
(
:pipeline
)
{
build
(
:ci_empty_pipeline
,
project:
project
,
sha:
head_sha
)
}
let
(
:attributes
)
{
{
name:
'rspec'
,
ref:
'master'
,
scheduling_type: :stage
}
}
let
(
:previous_stages
)
{
[]
}
...
...
@@ -503,7 +503,7 @@ RSpec.describe Gitlab::Ci::Pipeline::Seed::Build do
using
RSpec
::
Parameterized
let
(
:pipeline
)
do
build
(
:ci_empty_pipeline
,
ref:
'deploy'
,
tag:
false
,
source:
source
)
build
(
:ci_empty_pipeline
,
ref:
'deploy'
,
tag:
false
,
source:
source
,
project:
project
)
end
context
'matches'
do
...
...
@@ -766,7 +766,7 @@ RSpec.describe Gitlab::Ci::Pipeline::Seed::Build do
context
'with a matching changes: rule'
do
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
project:
project
).
tap
do
|
pipeline
|
build
(
:ci_pipeline
,
project:
project
).
tap
do
|
pipeline
|
stub_pipeline_modified_paths
(
pipeline
,
%w[app/models/ci/pipeline.rb spec/models/ci/pipeline_spec.rb .gitlab-ci.yml]
)
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