Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6 from portante/travis-ci
Browse files Browse the repository at this point in the history
Detect multiple python versions
  • Loading branch information
portante committed Aug 18, 2015
2 parents 2dc9ed2 + ef9e07c commit fd23fd7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions unittests
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ mkdir -p $tmp

# trap "rm -rf $tmp" EXIT INT QUIT

ver=$(python -c 'import sys; print("%d.%d" % sys.version_info[:2])')
python setup.py build

# So *always* use the in-tree version of configtools here.
# prefix better be right at this point
if [[ ! -f build/scripts-2.7/getconf.py ]]
if [[ ! -f build/scripts-$ver/getconf.py ]]
then
echo "Cannot find getconf.py: build/scripts-2.7/getconf.py" 1>&2
echo "Cannot find getconf.py: build/scripts-$ver/getconf.py" 1>&2
exit 1
fi

Expand All @@ -26,7 +27,7 @@ ppathins() {
export PYTHONPATH
ppathins $PWD/build/lib

bin=$PWD/build/scripts-2.7
bin=$PWD/build/scripts-$ver

function run_test {
testnum=$1
Expand Down

0 comments on commit fd23fd7

Please sign in to comment.