diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..dc301d4de --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: ruby +rvm: +- 2.0.0 + +script: ruby support/check_yaml.rb diff --git a/support/check_yaml.rb b/support/check_yaml.rb new file mode 100644 index 000000000..b2a084a7c --- /dev/null +++ b/support/check_yaml.rb @@ -0,0 +1,14 @@ +require 'yaml' + +path = File.expand_path('../members', File.dirname(__FILE__)) + +Dir.glob(path + '/*.yaml') do |f| + begin + File.open(f) do |data| + YAML.load(data) + end + rescue Exception => e + puts "Error in file #{f}:" + puts e.message + end +end