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
b18049b0
Commit
b18049b0
authored
Apr 13, 2021
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the 'test' task a no-op and advertise other tasks instead
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
88c4f65a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
Rakefile
Rakefile
+2
-0
lib/tasks/test.rake
lib/tasks/test.rake
+11
-2
No files found.
Rakefile
View file @
b18049b0
...
...
@@ -4,6 +4,8 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
Rake
::
TaskManager
.
record_task_metadata
=
true
require
File
.
expand_path
(
'config/application'
,
__dir__
)
relative_url_conf
=
File
.
expand_path
(
'config/initializers/relative_url'
,
__dir__
)
...
...
lib/tasks/test.rake
View file @
b18049b0
...
...
@@ -2,7 +2,16 @@
Rake
::
Task
[
"test"
].
clear
desc
"GitLab |
Run all
tests"
desc
"GitLab |
List rake tasks for
tests"
task
:test
do
Rake
::
Task
[
"gitlab:test"
].
invoke
puts
"Running the full GitLab test suite takes significant time to pass. We recommend using one of the following spec tasks:
\n\n
"
spec_tasks
=
Rake
::
Task
.
tasks
.
select
{
|
t
|
t
.
name
.
start_with?
(
'spec:'
)
}
longest_task_name
=
spec_tasks
.
map
{
|
t
|
t
.
name
.
size
}.
max
spec_tasks
.
each
do
|
task
|
puts
"
#{
"%-
#{
longest_task_name
}
s"
%
task
.
name
}
|
#{
task
.
full_comment
}
"
end
puts
"
\n
Learn more at https://docs.gitlab.com/ee/development/rake_tasks.html#run-tests."
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