Skip to content

Commit

Permalink
Unpin client versions for automated tests. Java and Pika remain pinned.
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Jul 5, 2011
1 parent 2660181 commit c0fc860
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions Makefile
Expand Up @@ -33,13 +33,16 @@ all:
test: dotnet/.ok erlang/.ok java/.ok python/.ok php/.ok ruby/.ok
RUBYVER=$(RUBYVER) python test.py

RABBITVER:=`curl -s http://www.rabbitmq.com/releases/bundles/|sed -n 's|.*folder.gif.*href="v\(.*\)/">.*|\1|p'|tail -n 1`
R=http://www.rabbitmq.com/releases

DVER=$(RABBITVER)
dotnet/.ok:
(cd dotnet && \
mkdir lib && \
cd lib && \
wget -c $(R)/rabbitmq-dotnet-client/v2.4.1/rabbitmq-dotnet-client-2.4.1-dotnet-3.0.zip && \
unzip -q rabbitmq-dotnet-client-2.4.1-dotnet-3.0.zip && \
wget -c $(R)/rabbitmq-dotnet-client/v$(DVER)/rabbitmq-dotnet-client-$(DVER)-dotnet-3.0.zip && \
unzip -q rabbitmq-dotnet-client-$(DVER)-dotnet-3.0.zip && \
cd .. && \
for f in *.cs; do \
gmcs -r:lib/bin/RabbitMQ.Client.dll $$f; \
Expand All @@ -49,35 +52,38 @@ clean::
(cd dotnet && \
rm -rf .ok *.zip lib *.exe)

EVER=$(RABBITVER)
erlang/.ok:
(cd erlang && \
wget -c $(R)/plugins/v2.5.0/rabbit_common-2.5.0.ez \
$(R)/plugins/v2.5.0/amqp_client-2.5.0.ez && \
unzip -q rabbit_common-2.5.0.ez && \
ln -s rabbit_common-2.5.0 rabbit_common && \
unzip -q amqp_client-2.5.0.ez && \
ln -s amqp_client-2.5.0 amqp_client && \
wget -c $(R)/plugins/v$(EVER)/rabbit_common-$(EVER).ez \
$(R)/plugins/v$(EVER)/amqp_client-$(EVER).ez && \
unzip -q rabbit_common-$(EVER).ez && \
ln -s rabbit_common-$(EVER) rabbit_common && \
unzip -q amqp_client-$(EVER).ez && \
ln -s amqp_client-$(EVER) amqp_client && \
touch .ok)
clean::
(cd erlang && \
rm -rf .ok *.ez amqp_client* rabbit_common*)

JVER=2.4.1
java/.ok:
(cd java && \
wget -c $(R)/rabbitmq-java-client/v2.4.1/rabbitmq-java-client-bin-2.4.1.zip && \
unzip -q rabbitmq-java-client-bin-2.4.1.zip && \
cp rabbitmq-java-client-bin-2.4.1/*.jar . && \
wget -c $(R)/rabbitmq-java-client/v$(JVER)/rabbitmq-java-client-bin-$(JVER).zip && \
unzip -q rabbitmq-java-client-bin-$(JVER).zip && \
cp rabbitmq-java-client-bin-$(JVER)/*.jar . && \
javac -cp rabbitmq-client.jar *.java && \
touch .ok)
clean::
(cd java && \
rm -rf .ok *.jar *.class *.zip rabbitmq-java-client-bin*)

PVER=0.9.5
python/.ok:
(cd python && \
virtualenv venv && \
./venv/bin/easy_install pip && \
./venv/bin/pip install pika==0.9.5 && \
./venv/bin/pip install pika==$(PVER) && \
touch .ok)
clean::
(cd python && \
Expand All @@ -94,6 +100,7 @@ clean::
RUBYVER:=1.9
GEMSVER=1.8.5
TOPDIR:=$(PWD)
RVER="~> 0.8.0.rc13"
ruby/.ok:
(cd ruby && \
wget http://production.cf.rubygems.org/rubygems/rubygems-$(GEMSVER).tgz && \
Expand All @@ -102,7 +109,7 @@ ruby/.ok:
ruby$(RUBYVER) setup.rb --prefix=$(TOPDIR)/ruby/gems && \
cd .. && \
rm -r rubygems-$(GEMSVER).tgz rubygems-$(GEMSVER) && \
GEM_HOME=gems/gems RUBYLIB=gems/lib gems/bin/gem$(RUBYVER) install amqp --version "0.8.0.rc13" && \
GEM_HOME=gems/gems RUBYLIB=gems/lib gems/bin/gem$(RUBYVER) install amqp --version $(RVER) && \
touch .ok)
clean::
(cd ruby && \
Expand Down

0 comments on commit c0fc860

Please sign in to comment.