-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial ComStock CI #90
Changes from all commits
c54ba72
b46668e
830378d
ea69e97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ lib/ | |
/sampling/output-buildstocks | ||
/sampling/truth_data | ||
*.pyc | ||
report.xml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/groovy | ||
|
||
@Library('cbci_shared_libs@develop') _ | ||
|
||
|
||
// Build for PR to main branch only. | ||
if ((env.CHANGE_ID) && (env.CHANGE_TARGET) ) { | ||
building_comstock_all() | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
require 'rake' | ||
require 'rake/testtask' | ||
require 'minitest/reporters' # Require the gem | ||
|
||
# Configure the JUnit reporter | ||
|
||
desc 'Perform tasks related to unit tests' | ||
namespace :unit_tests do | ||
desc 'Run measure tests' | ||
Rake::TestTask.new('measure_tests') do |t| | ||
MEASURETESTS_PATH = "test/measure_tests.txt" | ||
if File.exist?(MEASURETESTS_PATH) | ||
# load test files from file. | ||
full_file_list = FileList.new(File.readlines(MEASURETESTS_PATH).map(&:chomp)) | ||
full_file_list.select! { |item| item.include?('rb')} | ||
p full_file_list | ||
|
||
end | ||
t.test_files = full_file_list | ||
p(full_file_list) | ||
t.verbose = false | ||
t.warning = false | ||
end | ||
|
||
Rake::TestTask.new('resource_measure_tests') do |t| | ||
RESOURCE_MEASURETESTS_PATH = "test/resource_measure_tests.txt" | ||
if File.exist?(RESOURCE_MEASURETESTS_PATH) | ||
# load test files from file. | ||
full_file_list = FileList.new(File.readlines(RESOURCE_MEASURETESTS_PATH).map(&:chomp)) | ||
full_file_list.select! { |item| item.include?('rb')} | ||
p full_file_list | ||
end | ||
t.test_files = full_file_list | ||
p(full_file_list) | ||
t.verbose = false | ||
t.warning = false | ||
end | ||
|
||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
|
||
require 'openstudio' | ||
require 'openstudio/measure/ShowRunnerOutput' | ||
require_relative '../../../../test/helpers/minitest_helper' | ||
require 'fileutils' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file is missing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I set all the test related library imported and configurations in the minitest_helper to keep it simper. |
||
|
||
require_relative '../measure.rb' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep it as develop for now, once we are getting used to it remove the @develop branch tag.