From 0b32e94d139946712d23629fae3939b3ea52a626 Mon Sep 17 00:00:00 2001 From: Niklaus Giger Date: Tue, 6 May 2014 21:13:37 +0200 Subject: [PATCH] Another try add not running long test on travis-ci --- test_options.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_options.rb b/test_options.rb index 73df0b0..e13e3be 100755 --- a/test_options.rb +++ b/test_options.rb @@ -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')