Skip to content

Commit

Permalink
Add initial support for rubyspec as git submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 20, 2013
1 parent 9067f70 commit 2f175bc
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "rubyspec"]
path = rubyspec
url = git://github.com/rubyspec/rubyspec.git
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -5,5 +5,8 @@ rvm:
- 1.9.3
- 2.0.0

before_install:
- git submodule update --init

notifications:
irc: "irc.freenode.org#opal"
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -54,6 +54,10 @@ First, install dependencies:

$ bundle install

Rubyspecs must be cloned as a gitsubmodule:

$ git submodule update --init

Tests can be run with phantomjs using:

$ rake
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Expand Up @@ -58,6 +58,7 @@ class RunSpec
def build_specs
env = Opal::Environment.new
env.append_path 'spec'
env.append_path 'rubyspec'
env.use_gem 'mspec'

FileUtils.mkdir_p 'build'
Expand Down
1 change: 1 addition & 0 deletions rubyspec
Submodule rubyspec added at 197b81
4 changes: 4 additions & 0 deletions spec/ospec/main.rb.erb
Expand Up @@ -16,6 +16,10 @@
<% end %>
<% end %>
<% File.read('spec/rubyspecs').split("\n").each do |s| %>
<% require_asset s %>
<% end %>

# All specs have been run, so we notify mspec that we are done
OSpecRunner.main.did_finish

1 change: 1 addition & 0 deletions spec/rubyspecs
@@ -0,0 +1 @@
core/array/allocate_spec

0 comments on commit 2f175bc

Please sign in to comment.