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
2edf07ef
Commit
2edf07ef
authored
Jan 24, 2018
by
Rémy Coutable
Committed by
Robert Speicher
Feb 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run EE-specific specs in a dedicated job
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
272c96db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
6 deletions
+27
-6
.gitlab-ci.yml
.gitlab-ci.yml
+26
-5
spec/spec_helper.rb
spec/spec_helper.rb
+1
-1
No files found.
.gitlab-ci.yml
View file @
2edf07ef
...
...
@@ -134,6 +134,27 @@ stages:
<<
:
*rspec-metadata
<<
:
*use-pg
.rspec-metadata-mysql
:
&rspec-metadata-mysql
<<
:
*rspec-metadata
<<
:
*use-mysql
.rspec-metadata-ee
:
&rspec-metadata-ee
<<
:
*rspec-metadata
stage
:
test
script
:
-
export NO_KNAPSACK=1
-
export CACHE_CLASSES=true
-
scripts/gitaly-test-spawn
-
bundle exec rspec --color --format documentation ee/spec/
.rspec-ee-pg
:
&rspec-ee-pg
<<
:
*rspec-metadata-ee
<<
:
*use-pg
.rspec-ee-mysql
:
&rspec-ee-mysql
<<
:
*rspec-metadata-ee
<<
:
*use-mysql
.rspec-geo-pg-9-6
:
&rspec-metadata-pg-geo
<<
:
*rspec-metadata
<<
:
*use-pg-9-6-no-elasticsearch
...
...
@@ -143,11 +164,7 @@ stages:
-
export CACHE_CLASSES=true
-
source scripts/prepare_postgres_fdw.sh
-
scripts/gitaly-test-spawn
-
bundle exec rspec --color --format documentation --tag geo spec/
.rspec-metadata-mysql
:
&rspec-metadata-mysql
<<
:
*rspec-metadata
<<
:
*use-mysql
-
bundle exec rspec --color --format documentation --tag geo ee/spec/
.spinach-metadata
:
&spinach-metadata
<<
:
*dedicated-runner
...
...
@@ -346,7 +363,11 @@ setup-test-env:
-
tmp/tests
-
config/secrets.yml
# EE jobs
rspec-pg ee
:
*rspec-ee-pg
rspec-mysql ee
:
*rspec-ee-mysql
rspec-pg geo
:
*rspec-metadata-pg-geo
## EE jobs
rspec-pg 0 27
:
*rspec-metadata-pg
rspec-pg 1 27
:
*rspec-metadata-pg
...
...
spec/spec_helper.rb
View file @
2edf07ef
...
...
@@ -31,7 +31,7 @@ end
require
'rainbow/ext/string'
# EE specific support
Dir
[
Rails
.
root
.
join
(
"
spec/ee
/support/**/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"
ee/spec
/support/**/*.rb"
)].
each
{
|
f
|
require
f
}
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
...
...
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