Skip to content

Instantly share code, notes, and snippets.

@minrk
Created February 17, 2011 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minrk/831213 to your computer and use it in GitHub Desktop.
Save minrk/831213 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
info(){
echo "****************************************"
echo "INFO: $@"
}
fail(){
echo "****************************************"
echo "FAILED: $@"
exit -1
}
python setup.py clean
python setup.py cython
for py in python3.2 python3.1 python2.5 python2.7 python2.6; do
rm -rf build
python setup.py clean
info "building on $py"
$py setup.py build_ext --inplace >/dev/null || fail "couldn't build with $py"
info "testing on $py"
$py setup.py test || info "failed test on $py"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment