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
12e09986
Commit
12e09986
authored
Jun 23, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor rake tasks for tests
parent
b5e7096c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
29 deletions
+25
-29
features/project/source/browse_files.feature
features/project/source/browse_files.feature
+1
-1
lib/tasks/spec.rake
lib/tasks/spec.rake
+4
-4
lib/tasks/spinach.rake
lib/tasks/spinach.rake
+20
-24
No files found.
features/project/source/browse_files.feature
View file @
12e09986
...
...
@@ -45,7 +45,7 @@ Feature: Project Source Browse Files
Then
I am redirected to the new file on new branch
And
I should see its new content
@javascript
@tricky
@javascript
Scenario
:
I
can create file in empty repo
Given
I own an empty project
And
I visit my empty project page
...
...
lib/tasks/spec.rake
View file @
12e09986
Rake
::
Task
[
"spec"
].
clear
if
Rake
::
Task
.
task_defined?
(
'spec'
)
namespace
:spec
do
desc
'G
ITLAB
| Run request specs'
desc
'G
itLab | Rspec
| Run request specs'
task
:api
do
cmds
=
[
%W(rake gitlab:setup)
,
...
...
@@ -10,7 +10,7 @@ namespace :spec do
run_commands
(
cmds
)
end
desc
'G
ITLAB
| Run feature specs'
desc
'G
itLab | Rspec
| Run feature specs'
task
:feature
do
cmds
=
[
%W(rake gitlab:setup)
,
...
...
@@ -19,7 +19,7 @@ namespace :spec do
run_commands
(
cmds
)
end
desc
'G
ITLAB
| Run other specs'
desc
'G
itLab | Rspec
| Run other specs'
task
:other
do
cmds
=
[
%W(rake gitlab:setup)
,
...
...
@@ -29,7 +29,7 @@ namespace :spec do
end
end
desc
"G
ITLAB
| Run specs"
desc
"G
itLab
| Run specs"
task
:spec
do
cmds
=
[
%W(rake gitlab:setup)
,
...
...
lib/tasks/spinach.rake
View file @
12e09986
Rake
::
Task
[
"spinach"
].
clear
if
Rake
::
Task
.
task_defined?
(
'spinach'
)
desc
"GITLAB | Run spinach"
task
:spinach
do
tags
=
if
ENV
[
'SEMAPHORE'
]
'~@tricky'
else
'~@semaphore'
end
cmds
=
[
%W(rake gitlab:setup)
,
%W(spinach --tags
#{
tags
}
)
,
]
run_commands
(
cmds
)
end
namespace
:spinach
do
desc
"GitLab | Spinach | Run project spinach features"
task
:project
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets)
,
]
run_commands
(
cmds
)
end
desc
"GITLAB | Run project spinach features"
task
:spinach_project
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets)
,
]
run_commands
(
cmds
)
desc
"GitLab | Spinach | Run other spinach features"
task
:other
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(spinach --tags @admin,@dashboard,@profile,@public,@snippets)
,
]
run_commands
(
cmds
)
end
end
desc
"G
ITLAB | Run other spinach features
"
task
:spinach
_other
do
desc
"G
itLab | Run spinach
"
task
:spinach
do
cmds
=
[
%W(rake gitlab:setup)
,
%W(spinach
--tags @admin,@dashboard,@profile,@public,@snippets
)
,
%W(spinach)
,
]
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