Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6f67750e authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

Rakefile: add 'rake valid:base'

parent 14704bff
Branches
No related tags found
No related merge requests found
Pipeline #1104089 passed
......@@ -35,6 +35,25 @@ end
namespace :valid do
desc "Run all base checks (homogeneity, duplicates, schema) -- parameters: [SITE={grenoble,..}] [CLUSTER={yeti,..}] [VERBOSE=1]"
task "base" do
require 'refrepo/valid/homogeneity'
require 'refrepo/valid/input/duplicates'
require 'refrepo/valid/input/schema'
options = {}
options[:sites] = ( ENV['SITE'] ? ENV['SITE'].split(',') : G5K_SITES )
options[:clusters] = ( ENV['CLUSTER'] ? ENV['CLUSTER'].split(',') : [] )
options[:verbose] = ENV['VERBOSE'].to_i if ENV['VERBOSE']
puts "# Checking homogeneity ..."
ret1 = check_cluster_homogeneity(options)
puts "# Checking duplicates ..."
ret2 = yaml_input_find_duplicates(options)
puts "# Checking schema ..."
ret3 = yaml_input_schema_validator(options)
exit(ret1 && ret2 && ret3)
end
desc "Check homogeneity of clusters -- parameters: [SITE={grenoble,..}] [CLUSTER={yeti,..}] [VERBOSE=1]"
task "homogeneity" do
require 'refrepo/valid/homogeneity'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment