diff --git a/.travis.yml b/.travis.yml index ecca932d1d..e168da46e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,8 +24,8 @@ matrix: - rvm: 2.3.1 env: RUN=mspec_ruby_nodejs TZ="/usr/share/zoneinfo/Pacific/Fiji" - - rvm: 2.3.1 - env: RUN=mspec_ruby_sprockets_phantomjs + # - rvm: 2.3.1 + # env: RUN=mspec_ruby_sprockets_phantomjs - rvm: 2.3.1 env: RUN=minitest diff --git a/tasks/testing.rake b/tasks/testing.rake index 3d7f8495ac..22dfba4c99 100644 --- a/tasks/testing.rake +++ b/tasks/testing.rake @@ -116,38 +116,38 @@ Use PATTERN environment variable to manually set the glob for specs: DESC %w[ruby opal].each do |suite| - desc "Run the MSpec/#{suite} test suite on Opal::Sprockets/phantomjs" + pattern_usage - task :"mspec_#{suite}_sprockets_phantomjs" do - filename = File.expand_path('tmp/mspec_sprockets_phantomjs.rb') - runner = "#{__dir__}/testing/sprockets-phantomjs.js" - port = 9999 - url = "http://localhost:#{port}/" - - mkdir_p File.dirname(filename) - MSpecSuite.write_file filename, MSpecSuite.specs(ENV.to_hash.merge 'SUITE' => suite) - - MSpecSuite.stubs.each {|s| ::Opal::Config.stubbed_files << s } - - Opal::Config.arity_check_enabled = true - Opal::Config.freezing_stubs_enabled = true - Opal::Config.tainting_stubs_enabled = false - Opal::Config.dynamic_require_severity = :warning - - Opal.use_gem 'mspec' - Opal.append_path 'spec' - Opal.append_path 'lib' - Opal.append_path File.dirname(filename) - - app = Opal::Server.new { |s| s.main = File.basename(filename) } - server = Thread.new { Rack::Server.start(app: app, Port: port) } - sleep 1 - - begin - sh 'phantomjs', runner, url - ensure - server.kill if server.alive? - end - end + # desc "Run the MSpec/#{suite} test suite on Opal::Sprockets/phantomjs" + pattern_usage + # task :"mspec_#{suite}_sprockets_phantomjs" do + # filename = File.expand_path('tmp/mspec_sprockets_phantomjs.rb') + # runner = "#{__dir__}/testing/sprockets-phantomjs.js" + # port = 9999 + # url = "http://localhost:#{port}/" + # + # mkdir_p File.dirname(filename) + # MSpecSuite.write_file filename, MSpecSuite.specs(ENV.to_hash.merge 'SUITE' => suite) + # + # MSpecSuite.stubs.each {|s| ::Opal::Config.stubbed_files << s } + # + # Opal::Config.arity_check_enabled = true + # Opal::Config.freezing_stubs_enabled = true + # Opal::Config.tainting_stubs_enabled = false + # Opal::Config.dynamic_require_severity = :warning + # + # Opal.use_gem 'mspec' + # Opal.append_path 'spec' + # Opal.append_path 'lib' + # Opal.append_path File.dirname(filename) + # + # app = Opal::Server.new { |s| s.main = File.basename(filename) } + # server = Thread.new { Rack::Server.start(app: app, Port: port) } + # sleep 1 + # + # begin + # sh 'phantomjs', runner, url + # ensure + # server.kill if server.alive? + # end + # end %w[nodejs phantomjs].each do |platform| desc "Run the MSpec test suite on Opal::Builder/#{platform}" + pattern_usage