Fail if couldn't build Agda

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2024-05-23 00:04:13 -07:00
parent 4e1fd54c58
commit 96c4d6fecc

View File

@ -32,5 +32,6 @@ files_for_paths.each do |path, files|
files.each do |file| files.each do |file|
puts "Invoking 'agda' on file: #{File.join [Dir.getwd, file]}" puts "Invoking 'agda' on file: #{File.join [Dir.getwd, file]}"
`#{ARGV[0]} --local-interfaces #{file} --html --html-dir=html` `#{ARGV[0]} --local-interfaces #{file} --html --html-dir=html`
fail unless $? == 0
end end
end end