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
Kazuhiko Shiozaki
gitlab-ce
Commits
b0a86cb3
Commit
b0a86cb3
authored
Mar 13, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use gitlab:setup inside gitlab:test
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
46cc3b22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lib/tasks/gitlab/test.rake
lib/tasks/gitlab/test.rake
+2
-3
No files found.
lib/tasks/gitlab/test.rake
View file @
b0a86cb3
...
@@ -2,15 +2,14 @@ namespace :gitlab do
...
@@ -2,15 +2,14 @@ namespace :gitlab do
desc
"GITLAB | Run all tests"
desc
"GITLAB | Run all tests"
task
:test
do
task
:test
do
cmds
=
[
cmds
=
[
%W(rake db:setup)
,
%W(rake gitlab:setup)
,
%W(rake db:seed_fu)
,
%W(rake spinach)
,
%W(rake spinach)
,
%W(rake spec)
,
%W(rake spec)
,
%W(rake jasmine:ci)
%W(rake jasmine:ci)
]
]
cmds
.
each
do
|
cmd
|
cmds
.
each
do
|
cmd
|
system
({
'RAILS_ENV'
=>
'test'
},
*
cmd
)
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
raise
"
#{
cmd
}
failed!"
unless
$?
.
exitstatus
.
zero?
raise
"
#{
cmd
}
failed!"
unless
$?
.
exitstatus
.
zero?
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