Skip to content

Commit efe579e

Browse files
committedFeb 17, 2018
Merge branch 'master' into ruby-2.5
2 parents ef5e53a + ea6131a commit efe579e

File tree

1,124 files changed

+20306
-13032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,124 files changed

+20306
-13032
lines changed
 

‎.travis.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ before_install:
1212
- unset _JAVA_OPTIONS
1313
- rm ~/.m2/settings.xml
1414
- export MAVEN_SKIP_RC=true
15-
- mvn -Xmx32M -v | grep 1.7.0; if [ $? = 0 ]; then export MAVEN_OPTS="-XX:MaxPermSize=160M"; else export MAVEN_OPTS="-XX:MaxMetaspaceSize=144M -XX:CompressedClassSpaceSize=96M"; fi
16-
- export MAVEN_OPTS="-Xms64M -Xmx512M $MAVEN_OPTS"
17-
- export JAVA_OPTS="$JAVA_OPTS"
15+
- export MAVEN_OPTS="-Xmn64M -Xmx512M -XX:MaxMetaspaceSize=144M -XX:CompressedClassSpaceSize=96M"
16+
- export JAVA_OPTS="$JAVA_OPTS -XX:MaxMetaspaceSize=96M -XX:CompressedClassSpaceSize=96M"
1817

1918
before_script:
2019
- unset GEM_PATH GEM_HOME IRBRC JRUBY_OPTS
@@ -120,8 +119,10 @@ notifications:
120119

121120
services:
122121
- redis-server
122+
- haveged
123123

124124
addons:
125125
apt:
126126
packages:
127127
- oracle-java9-installer
128+
- haveged

‎BUILDING.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ verify that JRuby is still fully functional.
6363

6464
### Hacking the Build System
6565

66-
for a general overview of the different directories and maven artifacts see [JRuby Build)](https://github.com/jruby/jruby/wiki/JRuby-Build----Some-Inside-Info)
66+
for a general overview of the different directories and maven artifacts see [JRuby Build](https://github.com/jruby/jruby/wiki/JRuby-Build----Some-Inside-Info)
6767

6868
For this only the ***pom.rb*** needs to edited. using mvn-3.3.x or the maven wrapper `./mvnw` will generate the pom.xml file where needed. For the jar files of the build those pom.xml will be generated for some use-cases, i.e. some IDEs need them.
6969

@@ -123,19 +123,21 @@ from MRI's tests (under test/mri), use one of the following commands:
123123
The MRI suite (under `test/mri`) has a runner script in `test/mri/runner.rb` that sets up
124124
an appropriate test environment. Many of the MRI tests will need to be run via this script.
125125
```
126-
jruby -r ./test/mri_test_env.rb test/mri/runner.rb test/mri/<path to test>
126+
jruby test/mri/runner.rb test/mri/<path to test>
127127
```
128128

129-
You can pass `-v` to the runner for verbose output or `-n test_method_name` to only run a single test method. If you are interested in all failures you can exlude the -r option (of mri_test_env.rb). Some excluded tests are inherent limitations of JRuby and some are just problems we have not gotten to yet.
129+
You can pass `-v` to the runner for verbose output or `-n test_method_name` to only run a single test method.
130130

131131
#### Run a test file with known-failing tests excluded
132132

133-
The runner script provides a mechanism for "excluding" known failing tests. Ruby scripts under `test/mri/exclude`, named based on the name of the test case's class, exclude with comment tests known to fail.
133+
The runner script provides a mechanism for "excluding" known failing tests. These are usually features that JRuby has not yet implemented or can't implement on the JVM.
134134

135-
To run a given test with these excludes enabled, you can use the EXCLUDES environment variable:
135+
Excludes are in the form of Ruby scripts under `test/mri/exclude`, named based on the name of the test case's class, exclude with comment tests known to fail.
136+
137+
To run a given test with these excludes enabled, you can use the --excludes flag:
136138

137139
```
138-
EXCLUDES=test/mri/excludes bin/jruby test/mri/runner.rb <test file>
140+
bin/jruby test/mri/runner.rb --excludes=test/mri/excludes <test file>
139141
```
140142

141143
#### Run a single Ruby spec

0 commit comments

Comments
 (0)
Please sign in to comment.