Skip to content
Browse files

run_tests.sh runs tests on Python 2.5, 2.6 and 2.7

  • Loading branch information...
1 parent 2d3d3f5 commit f36e81996f86bf76620bac71306d29144e4691b5 @haypo committed Mar 20, 2012
Showing with 19 additions and 7 deletions.
  1. +18 −5 run_tests.sh
  2. +1 −2 setup.py
View
23 run_tests.sh
@@ -1,6 +1,19 @@
#!/bin/bash
-PYTHON=python
-PYVER=$(python -c 'import sys; print("%s.%s" % sys.version_info[:2])')
-set -x
-$PYTHON setup.py build
-PYTHONPATH=$(cd build/lib.*-$PYVER/; pwd) $PYTHON tests.py
+set -e
+
+rm -rf build
+
+TESTED=""
+for PYVER in 2.5 2.6 2.7; do
+ PYTHON=python$PYVER
+ $PYTHON -c pass || continue
+ $PYTHON setup.py build
+ PYTHONPATH=$(cd build/lib.*-$PYVER/; pwd) $PYTHON tests.py --raise
+ if [ ! -z "$TESTED" ]; then
+ TESTED="$TESTED, $PYVER"
+ else
+ TESTED="$PYVER"
+ fi
+done
+
+echo "pysandbox tesed on Python $TESTED"
View
3 setup.py
@@ -1,8 +1,7 @@
#!/usr/bin/env python
# Todo list to prepare a release:
-# - run python2.5 tests.py
-# - run python2.6 tests.py
+# - run ./run_tests.sh
# - check TODO if there is no more critical known bug
# - do an audit of new features (see the ChangeLog)
# - set version in sandbox/version.py

0 comments on commit f36e819

Please sign in to comment.
Something went wrong with that request. Please try again.