aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Iversen <teh.ivo@gmail.com>2014-06-02 22:23:58 +1000
committerMatthew Iversen <teh.ivo@gmail.com>2014-06-02 22:23:58 +1000
commit912afb62d648e9c872fddc9392b73006e8335d9a (patch)
treed2a57d8e00075292069e1edbabd2f0431c8c56aa
parentdc212fd1e1636fbc3bca6d9a1c7cf65ff7d311d2 (diff)
downloadexternal_python_setuptools-912afb62d648e9c872fddc9392b73006e8335d9a.tar.gz
external_python_setuptools-912afb62d648e9c872fddc9392b73006e8335d9a.tar.bz2
external_python_setuptools-912afb62d648e9c872fddc9392b73006e8335d9a.zip
Move tests.sh to a tox config
--HG-- extra : source : 0d6a065483104cc9781a3ff72c168f059ec11036
-rw-r--r--test.sh67
-rw-r--r--tox.ini5
2 files changed, 5 insertions, 67 deletions
diff --git a/test.sh b/test.sh
deleted file mode 100644
index ed6d4efc..00000000
--- a/test.sh
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-echo -n "Running tests for Python 2.4..."
-python2.4 setup.py -q test > /dev/null 2> /dev/null
-if [ $? -ne 0 ];then
- echo "Failed"
- exit $1
-else
- echo "Success"
-fi
-
-echo -n "Running tests for Python 2.5..."
-python2.5 setup.py -q test > /dev/null 2> /dev/null
-if [ $? -ne 0 ];then
- echo "Failed"
- exit $1
-else
- echo "Success"
-fi
-
-echo -n "Running tests for Python 2.6..."
-python2.6 setup.py -q test > /dev/null 2> /dev/null
-if [ $? -ne 0 ];then
- echo "Failed"
- exit $1
-else
- echo "Success"
-fi
-
-echo -n "Running tests for Python 2.7..."
-python2.7 setup.py -q test > /dev/null 2> /dev/null
-if [ $? -ne 0 ];then
- echo "Failed"
- exit $1
-else
- echo "Success"
-fi
-
-rm -rf build
-echo -n "Running tests for Python 3.1..."
-python3.1 setup.py -q test > /dev/null 2> /dev/null
-if [ $? -ne 0 ];then
- echo "Failed"
- exit $1
-else
- echo "Success"
-fi
-
-rm -rf build
-echo -n "Running tests for Python 3.2..."
-python3.2 setup.py -q test > /dev/null 2> /dev/null
-if [ $? -ne 0 ];then
- echo "Failed"
- exit $1
-else
- echo "Success"
-fi
-
-rm -rf build
-echo -n "Running tests for Python 3.3..."
-python3.3 setup.py -q test > /dev/null 2> /dev/null
-if [ $? -ne 0 ];then
- echo "Failed"
- exit $1
-else
- echo "Success"
-fi
-
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 00000000..06421a73
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,5 @@
+[tox]
+envlist = py26,py27,py31,py32,py33,py34
+[testenv]
+deps=pytest
+commands=py.test