]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add vagrant config for ubuntu 12.10.
authorBen Darnell <ben@bendarnell.com>
Thu, 24 Jan 2013 02:22:34 +0000 (21:22 -0500)
committerBen Darnell <ben@bendarnell.com>
Thu, 24 Jan 2013 02:22:34 +0000 (21:22 -0500)
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).

maint/vm/ubuntu12.10/Vagrantfile [new file with mode: 0644]
maint/vm/ubuntu12.10/setup.sh [new file with mode: 0644]
maint/vm/ubuntu12.10/tox.ini [new file with mode: 0644]

diff --git a/maint/vm/ubuntu12.10/Vagrantfile b/maint/vm/ubuntu12.10/Vagrantfile
new file mode 100644 (file)
index 0000000..71f78f7
--- /dev/null
@@ -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 (file)
index 0000000..80252d6
--- /dev/null
@@ -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 (file)
index 0000000..e7aacb9
--- /dev/null
@@ -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:}