BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
9ebdee09
Commit
9ebdee09
authored
Dec 09, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split up feature specs more
parent
20b55981
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
6 deletions
+32
-6
.gitlab-ci.yml
.gitlab-ci.yml
+9
-2
spinach.rake
lib/tasks/spinach.rake
+23
-4
No files found.
.gitlab-ci.yml
View file @
9ebdee09
...
...
@@ -39,9 +39,16 @@ spec:other:
-
ruby
-
mysql
spinach:project
:
spinach:project:
half
:
script
:
-
RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project
-
RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project:half
tags
:
-
ruby
-
mysql
spinach:project:rest
:
script
:
-
RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project:rest
tags
:
-
ruby
-
mysql
...
...
lib/tasks/spinach.rake
View file @
9ebdee09
Rake
::
Task
[
"spinach"
].
clear
if
Rake
::
Task
.
task_defined?
(
'spinach'
)
namespace
:spinach
do
namespace
:project
do
desc
"GitLab | Spinach | Run project commits, issues and merge requests spinach features"
task
:half
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(spinach --tags @project_commits,@project_issues,@project_merge_requests)
,
]
run_commands
(
cmds
)
end
desc
"GitLab | Spinach | Run remaining project spinach features"
task
:rest
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets,~@project_commits,~@project_issues,~@project_merge_requests)
,
]
run_commands
(
cmds
)
end
end
desc
"GitLab | Spinach | Run project spinach features"
task
:project
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets
,~@commits
)
,
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets)
,
]
run_commands
(
cmds
)
end
...
...
@@ -14,7 +34,7 @@ namespace :spinach do
task
:other
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(spinach --tags @admin,@dashboard,@profile,@public,@snippets
,@commits
)
,
%W(spinach --tags @admin,@dashboard,@profile,@public,@snippets)
,
]
run_commands
(
cmds
)
end
...
...
@@ -33,4 +53,4 @@ def run_commands(cmds)
cmds
.
each
do
|
cmd
|
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
or
raise
(
"
#{
cmd
}
failed!"
)
end
end
\ No newline at end of file
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