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
56fa093b
Commit
56fa093b
authored
May 10, 2018
by
blackst0ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove spinach.rake
parent
3f19f67b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
60 deletions
+0
-60
lib/tasks/spinach.rake
lib/tasks/spinach.rake
+0
-60
No files found.
lib/tasks/spinach.rake
deleted
100644 → 0
View file @
3f19f67b
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
run_spinach_tests
(
'@project_commits,@project_issues,@project_merge_requests'
)
end
desc
"GitLab | Spinach | Run remaining project spinach features"
task
:rest
do
run_spinach_tests
(
'~@admin,~@dashboard,~@profile,~@public,~@snippets,~@project_commits,~@project_issues,~@project_merge_requests'
)
end
end
desc
"GitLab | Spinach | Run project spinach features"
task
:project
do
run_spinach_tests
(
'~@admin,~@dashboard,~@profile,~@public,~@snippets'
)
end
desc
"GitLab | Spinach | Run other spinach features"
task
:other
do
run_spinach_tests
(
'@admin,@dashboard,@profile,@public,@snippets'
)
end
desc
"GitLab | Spinach | Run other spinach features"
task
:builds
do
run_spinach_tests
(
'@builds'
)
end
end
desc
"GitLab | Run spinach"
task
:spinach
do
run_spinach_tests
(
nil
)
end
def
run_system_command
(
cmd
)
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
end
def
run_spinach_command
(
args
)
run_system_command
(
%w(spinach -r rerun)
+
args
)
end
def
run_spinach_tests
(
tags
)
success
=
run_spinach_command
(
%W(--tags
#{
tags
}
)
)
3
.
times
do
|
_
|
break
if
success
break
unless
File
.
exist?
(
'tmp/spinach-rerun.txt'
)
tests
=
File
.
foreach
(
'tmp/spinach-rerun.txt'
).
map
(
&
:chomp
)
puts
''
puts
"Spinach tests for
#{
tags
}
: Retrying tests...
#{
tests
}
"
.
color
(
:red
)
puts
''
sleep
(
3
)
success
=
run_spinach_command
(
tests
)
end
raise
(
"spinach tests for
#{
tags
}
failed!"
)
unless
success
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