forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tasks and mspec definitions to run cext specs on the CI
- Loading branch information
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Default RubySpec/CI settings for JRuby. | ||
|
||
# detect windows platform: | ||
require 'rbconfig' | ||
require 'java' | ||
require 'jruby/util' | ||
|
||
IKVM = java.lang.System.get_property('java.vm.name') =~ /IKVM\.NET/ | ||
WINDOWS = Config::CONFIG['host_os'] =~ /mswin/ | ||
|
||
SPEC_DIR = File.join(File.dirname(__FILE__), 'ruby') unless defined?(SPEC_DIR) | ||
TAGS_DIR = File.join(File.dirname(__FILE__), 'tags') unless defined?(TAGS_DIR) | ||
|
||
class MSpecScript | ||
# An ordered list of the directories containing specs to run | ||
# as the CI process. | ||
set :ci_files, [ | ||
SPEC_DIR + '/optional/capi', | ||
] | ||
|
||
# The default implementation to run the specs. | ||
set :target, File.dirname(__FILE__) + '/../bin/' + Config::CONFIG['ruby_install_name'] + Config::CONFIG['EXEEXT'] | ||
|
||
set :backtrace_filter, /mspec\// | ||
|
||
# Disable features (not currently supported) | ||
MSpec.disable_feature :continuation | ||
MSpec.disable_feature :fork | ||
|
||
# Enable features | ||
MSpec.enable_feature :readline | ||
# These are encoding-aware methods backported to 1.8.7+ (eg String#bytes) | ||
MSpec.enable_feature :encoding_transition | ||
end |