Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
51000d5e
Commit
51000d5e
authored
Oct 26, 2013
by
Mislav Marohnić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for automatic fetching of rake gem
parent
a6847fdd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
bin/ruby-build
+2
-1
test/build.bats
+18
-3
No files found.
bin/ruby-build
View file @
51000d5e
...
...
@@ -714,7 +714,8 @@ bundle() {
}
isolated_gem_dependency
()
{
if
!
command
$1
&>/dev/null
;
then
local
output
=
"
$(
command
$1
2>/dev/null
||
true
)
"
if
[
-z
"
$output
"
]
;
then
shift
1
isolated_gem_install
"
$@
"
fi
...
...
test/build.bats
View file @
51000d5e
...
...
@@ -135,7 +135,7 @@ OUT
chmod -w "$INSTALL_ROOT/bin/mruby"
stub gem false
stub rake '--version :
true
' true
stub rake '--version :
echo 1
' true
run_inline_definition <<DEF
install_package "mruby-1.0" "http://ruby-lang.org/pub/mruby-1.0.tar.gz" mruby
...
...
@@ -149,15 +149,30 @@ DEF
assert [ -e "$INSTALL_ROOT/bin/irb" ]
}
@test "mruby strategy fetches rake if missing" {
cached_tarball "mruby-1.0" build/host/bin/mruby
stub rake '--version : false' true
stub gem 'install rake -v *10.1.0 : true'
run_inline_definition <<DEF
install_package "mruby-1.0" "http://ruby-lang.org/pub/mruby-1.0.tar.gz" mruby
DEF
assert_success
unstub gem
unstub rake
}
@test "rbx uses bundle then rake" {
cached_tarball "rubinius-2.0.0" "Gemfile"
stub gem false
stub rake false
stub bundle \
'--version :
true
' \
'--version :
echo 1
' \
' : echo bundle >> build.log' \
'--version :
true
' \
'--version :
echo 1
' \
" exec rake install : { cat build.log; echo bundle \"\$@\"; } >> '$INSTALL_ROOT/build.log'"
run_inline_definition <<DEF
...
...
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