Sha256: 11a86520c75c5226c29474a1c213ff8b523c34fec97d5868d368008f59984470

Contents?: true

Size: 909 Bytes

Versions: 2

Compression:

Stored size: 909 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

require 'rubocop/rake_task'
RuboCop::RakeTask.new

# Load in the rake tasks from the base openstudio-extension gem
require 'openstudio/extension/rake_task'
require 'urbanopt/reopt/extension'
os_extension = OpenStudio::Extension::RakeTask.new
os_extension.set_extension_class(URBANopt::REopt::Extension, 'urbanopt/urbanopt-reopt-gem')

desc 'CLI OpenSSL test'
task :cli_openssl_test do
  runner = OpenStudio::Extension::Runner.new(URBANopt::REopt::Extension.new.root_dir)

  cli = OpenStudio.getOpenStudioCLI
  the_call = "#{cli} --verbose --bundle '#{runner.gemfile_path}' --bundle_path '#{runner.bundle_install_path}' ./spec/cli_openssl_test.rb"

  puts 'SYSTEM CALL:'
  puts the_call
  STDOUT.flush
  result = runner.run_command(the_call)
  puts "DONE, result = #{result}"
  STDOUT.flush
end

task default: :spec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
urbanopt-reopt-0.3.0 Rakefile
urbanopt-reopt-0.3.0.pre1 Rakefile