-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathRakefile
37 lines (27 loc) · 1.15 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# *******************************************************************************
# OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
# See also https://openstudio.net/license
# *******************************************************************************
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
# Load in the rake tasks from the base extension gem
require 'openstudio/extension/rake_task'
require 'openstudio/model_articulation'
rake_task = OpenStudio::Extension::RakeTask.new
rake_task.set_extension_class(OpenStudio::ModelArticulation::Extension, 'nrel/openstudio-model-articulation-gem')
require 'openstudio_measure_tester/rake_task'
OpenStudioMeasureTester::RakeTask.new
task default: :spec
desc 'Delete measure test output'
task :delete_measure_test_outputs do
require 'fileutils'
puts 'Deleting tests/output directory from measures.'
# get measures in repo
measures = Dir.glob('**/**/**/measure.rb')
#create unique list of parent directories for measures.
measures.each do |i|
FileUtils.rm_rf(i.gsub("measure.rb","tests/output"))
end
puts "deleteting test outputs"
end