From: Ben Darnell Date: Thu, 24 Jan 2013 02:22:34 +0000 (-0500) Subject: Add vagrant config for ubuntu 12.10. X-Git-Tag: v3.0.0~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60cc236c960ae04530d9ab0c7b1d09f0af96ac1f;p=thirdparty%2Ftornado.git Add vagrant config for ubuntu 12.10. This release is interesting because it includes a python3 port of pycurl (which is difficult to use from tox but can at least be tested manually). --- diff --git a/maint/vm/ubuntu12.10/Vagrantfile b/maint/vm/ubuntu12.10/Vagrantfile new file mode 100644 index 000000000..71f78f701 --- /dev/null +++ b/maint/vm/ubuntu12.10/Vagrantfile @@ -0,0 +1,9 @@ +Vagrant::Config.run do |config| + config.vm.box = "ubuntu12.10" + config.vm.box_url = "http://cloud-images.ubuntu.com/quantal/current/quantal-server-cloudimg-vagrant-i386-disk1.box" + + config.vm.network :hostonly, "172.19.1.7" + config.vm.share_folder("tornado", "/tornado", "../../..", :nfs=> true) + + #config.vm.provision :shell, :path => "setup.sh" +end \ No newline at end of file diff --git a/maint/vm/ubuntu12.10/setup.sh b/maint/vm/ubuntu12.10/setup.sh new file mode 100644 index 000000000..80252d6fd --- /dev/null +++ b/maint/vm/ubuntu12.10/setup.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +set -e + +apt-get update + +# libcurl4-gnutls-dev is the default if you ask for libcurl4-dev, but it +# has bugs that make our tests deadlock (the relevant tests detect this and +# disable themselves, but it means that to get full coverage we have to use +# the openssl version). +APT_PACKAGES=" +python-pip +python-dev +python3-pycurl +libcurl4-openssl-dev +" + +apt-get -y install $APT_PACKAGES + +# Ubuntu 12.10 includes python 2.7 and 3.2. + +PIP_PACKAGES=" +futures +pycurl +tox +twisted +virtualenv +" + +pip install $PIP_PACKAGES + +/tornado/maint/vm/shared-setup.sh diff --git a/maint/vm/ubuntu12.10/tox.ini b/maint/vm/ubuntu12.10/tox.ini new file mode 100644 index 000000000..e7aacb9bf --- /dev/null +++ b/maint/vm/ubuntu12.10/tox.ini @@ -0,0 +1,33 @@ +[tox] +envlist = py27-full, py32, py27, py27-select, py27-twisted +setupdir=/tornado +toxworkdir=/home/vagrant/tox-tornado + +[testenv] +commands = python -m tornado.test.runtests {posargs:} + +[testenv:py27-full] +basepython = python2.7 +deps = + futures + mock + pycurl + twisted==12.2.0 + +[testenv:py27-select] +basepython = python2.7 +deps = + futures + mock + pycurl + twisted==12.2.0 +commands = python -m tornado.test.runtests --ioloop=tornado.platform.select.SelectIOLoop {posargs:} + +[testenv:py27-twisted] +basepython = python2.7 +deps = + futures + mock + pycurl + twisted==12.2.0 +commands = python -m tornado.test.runtests --ioloop=tornado.platform.twisted.TwistedIOLoop {posargs:}