Skip to content

Commit

Permalink
Another try add not running long test on travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed May 6, 2014
1 parent c39085f commit 0b32e94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test_options.rb
Expand Up @@ -42,11 +42,12 @@ def prepare_for_gem_test
end

Ausgabe = File.join(Dir.pwd, 'ausgabe', Time.now.strftime('%Y.%m.%d-%H:%M'))
puts "FQDN hostname #{Socket.gethostbyname(Socket.gethostname).first}"
puts "FQDN hostname #{Socket.gethostbyname(Socket.gethostname).inspect}"
FileUtils.makedirs(Ausgabe)
prepare_for_gem_test
# we will skip some long running tests as travis jobs must finish in less than 50 minutes
unless /travis/i.match(Socket.gethostbyname(Socket.gethostname).first)
# unfortunately it returns a very common name
unless 'localhost.localdomain'.eql?(Socket.gethostbyname(Socket.gethostname).first)
test_one_call('oddb2xml -e')
test_one_call('oddb2xml -f dat -a nonpharma')
test_one_call('oddb2xml -a nonpharma')
Expand Down

0 comments on commit 0b32e94

Please sign in to comment.