Author: donaldp
Date: Sun Apr 14 07:50:35 2013
New Revision: 1467742

URL: http://svn.apache.org/r1467742
Log:
Disable a test so that the suite can be easily run on TravisCI

Modified:
    buildr/trunk/spec/scala/compiler_spec.rb

Modified: buildr/trunk/spec/scala/compiler_spec.rb
URL: 
http://svn.apache.org/viewvc/buildr/trunk/spec/scala/compiler_spec.rb?rev=1467742&r1=1467741&r2=1467742&view=diff
==============================================================================
--- buildr/trunk/spec/scala/compiler_spec.rb (original)
+++ buildr/trunk/spec/scala/compiler_spec.rb Sun Apr 14 07:50:35 2013
@@ -110,16 +110,18 @@ share_as :ScalacCompiler do
   end
 end
 
+# Only run this test if the test environment has SCALA_HOME specified.
+# Allows the Test Suite to run on TravisCI
+if ENV['SCALA_HOME']
+  describe 'scala compiler (installed in SCALA_HOME)' do
+    it 'requires present SCALA_HOME' do
+      ENV['SCALA_HOME'].should_not be_nil
+    end
 
-describe 'scala compiler (installed in SCALA_HOME)' do
-  it 'requires present SCALA_HOME' do
-    ENV['SCALA_HOME'].should_not be_nil
+    it_should_behave_like ScalacCompiler
   end
-
-  it_should_behave_like ScalacCompiler
 end
 
-
 describe 'scala compiler (downloaded from repository)' do
   old_home = ENV['SCALA_HOME']
 


Reply via email to