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
Boxiang Sun
gitlab-ce
Commits
e48c6fab
Commit
e48c6fab
authored
Sep 29, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make rake gitlab:test works
parent
267e8c73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
lib/tasks/gitlab/test.rake
lib/tasks/gitlab/test.rake
+13
-6
spec/javascripts/support/jasmine_helper.rb
spec/javascripts/support/jasmine_helper.rb
+2
-0
No files found.
lib/tasks/gitlab/test.rake
View file @
e48c6fab
namespace
:gitlab
do
desc
"GITLAB | Run all tests"
task
:test
do
Rails
.
env
=
"test"
Rake
::
Task
[
"db:setup"
].
invoke
Rake
::
Task
[
"db:seed_fu"
].
invoke
Rake
::
Task
[
"spinach"
].
invoke
Rake
::
Task
[
"spec"
].
invoke
Rake
::
Task
[
"jasmince:ci"
].
invoke
cmds
=
[
"rake db:setup"
,
"rake db:seed_fu"
,
"rake spinach"
,
"rake spec"
,
"rake jasmine:ci"
]
cmds
.
each
do
|
cmd
|
system
(
cmd
+
" RAILS_ENV=test"
)
raise
"
#{
cmd
}
failed!"
unless
$?
.
exitstatus
.
zero?
end
end
end
spec/javascripts/support/jasmine_helper.rb
View file @
e48c6fab
WebMock
.
allow_net_connect!
Jasmine
.
configure
do
|
config
|
config
.
browser
=
:phantomjs
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