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
e932d471
Commit
e932d471
authored
May 23, 2015
by
Mislav Marohnić
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'openjdk'
parents
a5d0479a
4c0df6af
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
bin/ruby-build
+1
-1
test/build.bats
+12
-0
No files found.
bin/ruby-build
View file @
e932d471
...
@@ -701,7 +701,7 @@ fix_rbx_irb() {
...
@@ -701,7 +701,7 @@ fix_rbx_irb() {
}
}
require_java7
()
{
require_java7
()
{
local
version
=
"
$(
java
-version
2>&1 |
grep
'
java
version'
| head
-1
)
"
local
version
=
"
$(
java
-version
2>&1 |
grep
'
\(java\|openjdk\)
version'
| head
-1
)
"
if
[[
$version
!=
*
1.[789]
*
]]
;
then
if
[[
$version
!=
*
1.[789]
*
]]
;
then
colorize 1
"ERROR"
>
&3
colorize 1
"ERROR"
>
&3
echo
": Java 7 required. Please install a 1.7-compatible JRE."
>
&3
echo
": Java 7 required. Please install a 1.7-compatible JRE."
>
&3
...
...
test/build.bats
View file @
e932d471
...
@@ -599,6 +599,18 @@ DEF
...
@@ -599,6 +599,18 @@ DEF
assert_success
assert_success
}
}
@test "Java version string on OpenJDK" {
cached_tarball "jruby-9000.dev" bin/jruby
stub java "-version : echo 'openjdk version \"1.8.0_40\"' >&2"
run_inline_definition <<DEF
require_java7
install_package "jruby-9000.dev" "http://ci.jruby.org/jruby-dist-9000.dev-bin.tar.gz" jruby
DEF
assert_success
}
@test "non-writable TMPDIR aborts build" {
@test "non-writable TMPDIR aborts build" {
export TMPDIR="${TMP}/build"
export TMPDIR="${TMP}/build"
mkdir -p "$TMPDIR"
mkdir -p "$TMPDIR"
...
...
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