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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
ae0b9017
Commit
ae0b9017
authored
Dec 09, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split up specs more
parent
1e8d703a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
.gitlab-ci.yml
.gitlab-ci.yml
+8
-1
lib/tasks/spec.rake
lib/tasks/spec.rake
+10
-1
No files found.
.gitlab-ci.yml
View file @
ae0b9017
...
...
@@ -24,6 +24,13 @@ spec:api:
-
ruby
-
mysql
spec:models:
script
:
-
RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:models
tags
:
-
ruby
-
mysql
spec:benchmark:
script
:
-
RAILS_ENV=test bundle exec rake spec:benchmark
...
...
lib/tasks/spec.rake
View file @
ae0b9017
...
...
@@ -19,6 +19,15 @@ namespace :spec do
run_commands
(
cmds
)
end
desc
'GitLab | Rspec | Run model specs'
task
:models
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(rspec spec --tag @models)
]
run_commands
(
cmds
)
end
desc
'GitLab | Rspec | Run benchmark specs'
task
:benchmark
do
cmds
=
[
...
...
@@ -32,7 +41,7 @@ namespace :spec do
task
:other
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(rspec spec --tag ~@api
--tag ~@feature --tag
~@benchmark)
%W(rspec spec --tag ~@api
,~@feature,~@models,
~@benchmark)
]
run_commands
(
cmds
)
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