about summary refs log tree commit homepage
path: root/t/GNUmakefile
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-10-08 21:24:41 +0000
committerEric Wong <e@80x24.org>2014-10-08 21:27:48 +0000
commit633b984a41cc3b036b47982ad72b5658ec54c918 (patch)
tree97da3934d53c4776c3e8c6bf7db70bf0f959571c /t/GNUmakefile
parent64a68a2a457d5f57969261689c13d633f6721ed3 (diff)
downloadrainbows-633b984a41cc3b036b47982ad72b5658ec54c918.tar.gz
This will allow me to test for unintentional breakage in 2.2.0.

Part of the reason for putting this project on maintenance mode
is because many of the libraries we depend on have not kept up
with the latest changes to Ruby.  So we will disable many tests
for 2.2+ to ensure the core parts remain working.
Diffstat (limited to 't/GNUmakefile')
-rw-r--r--t/GNUmakefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/t/GNUmakefile b/t/GNUmakefile
index 4843e37..c456877 100644
--- a/t/GNUmakefile
+++ b/t/GNUmakefile
@@ -29,7 +29,6 @@ models += WriterThreadPool
 models += WriterThreadSpawn
 models += ThreadPool
 models += ThreadSpawn
-models += Coolio
 
 models += StreamResponseEpoll
 
@@ -42,12 +41,16 @@ ifeq ($(RUBY_ENGINE),ruby)
     endif
     models += FiberSpawn
     models += FiberPool
-    models += CoolioThreadPool
-    models += CoolioThreadSpawn
-    models += CoolioFiberSpawn
 
-    models += EventMachine
-    models += NeverBlock
+    RUBY_LE_2_1 := $(shell $(RUBY) -e 'puts((RUBY_VERSION.to_f <= 2.1).to_s))')
+    ifeq ($(RUBY_LE_2_1), true)
+      models += Coolio
+      models += CoolioThreadPool
+      models += CoolioThreadSpawn
+      models += CoolioFiberSpawn
+      models += EventMachine
+      models += NeverBlock
+    endif
   endif
 endif