Permalink
Browse files

Switch to tox for running tests in multiple Python versions

  • Loading branch information...
1 parent 9ced501 commit f6433f49851e551e422c66acaf3077f3c064824f @SimonSapin SimonSapin committed Oct 20, 2011
Showing with 6 additions and 29 deletions.
  1. +1 −0 .gitignore
  2. +0 −29 run_tests
  3. +5 −0 tox.ini
View
@@ -3,3 +3,4 @@
/env*
/dist
/docs/_build
+/.tox
View
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-# Create a multi-python virtualenv
-# virtualenv env
-# virtualenv env -p python2.5
-# virtualenv env -p python2.6
-# virtualenv env -p python2.7
-# Upgrade pip if < 0.8.2
-# pip-2.5 install -U pip
-# pip-2.6 install -U pip
-# pip-2.7 install -U pip
-# "Install"
-# pip-2.5 install -e .
-# pip-2.6 install -e .
-# pip-2.7 install -e .
-
-if [ "x$VIRTUAL_ENV" = "x" ]
-then
- echo "Not in a virtualenv. Aborting."
- exit 1
-fi
-
-cd $(dirname $0)
-
-for python in python2.5 python2.6 python2.7
-do
- echo "Testing in $python"
- $python -Wd setup.py -q test "$@"
-done
View
@@ -0,0 +1,5 @@
+[tox]
+envlist = py25, py26, py27
+[testenv]
+commands=python -c 'import unittest; unittest.main("flaskext.frozen.tests")'
+changedir=docs

0 comments on commit f6433f4

Please sign in to comment.