Skip to content

Commit

Permalink
Check YAML files on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Apr 16, 2014
1 parent 083fdbb commit fd84ca7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: ruby
rvm:
- 2.0.0

script: ruby support/check_yaml.rb
14 changes: 14 additions & 0 deletions support/check_yaml.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fd84ca7

Please sign in to comment.