Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
a4f71d6eb67c
Commit
84a5a548
authored
Feb 02, 2015
by
Dmitriy Zaporozhets
Browse files
Add rubocop to rake test and rake test_ci
parent
1eda385ce2bc
Changes
3
Show whitespace changes
Inline
Side-by-side
lib/tasks/gitlab/test.rake
View file @
a4f71d6e
...
@@ -2,6 +2,7 @@ namespace :gitlab do
...
@@ -2,6 +2,7 @@ namespace :gitlab do
desc
"GITLAB | Run all tests"
desc
"GITLAB | Run all tests"
task
:test
do
task
:test
do
cmds
=
[
cmds
=
[
%W(rake rubocop)
,
%W(rake spinach)
,
%W(rake spinach)
,
%W(rake spec)
,
%W(rake spec)
,
%W(rake jasmine:ci)
%W(rake jasmine:ci)
...
...
lib/tasks/rubocop.rake
0 → 100644
View file @
a4f71d6e
require
'rubocop/rake_task'
RuboCop
::
RakeTask
.
new
lib/tasks/test.rake
View file @
a4f71d6e
...
@@ -9,5 +9,5 @@ unless Rails.env.production?
...
@@ -9,5 +9,5 @@ unless Rails.env.production?
require
'coveralls/rake/task'
require
'coveralls/rake/task'
Coveralls
::
RakeTask
.
new
Coveralls
::
RakeTask
.
new
desc
"GITLAB | Run all tests on CI with simplecov"
desc
"GITLAB | Run all tests on CI with simplecov"
task
:test_ci
=>
[
:spinach
,
:spec
,
'coveralls:push'
]
task
:test_ci
=>
[
:rubocop
,
:spinach
,
:spec
,
'coveralls:push'
]
end
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