libvirt-python: add classifiers to setup.py
[libvirt-python/ericb.git] / autobuild.sh
blob5dffe96fac3a07828d603430da425945e3c6e75c
1 #!/bin/sh
3 set -ve
5 : ${AUTOBUILD_INSTALL_ROOT="$HOME/builder"}
7 rm -rf MANIFEST dist build
10 python2 setup.py sdist
12 python2 setup.py build
13 python2 setup.py test
14 python2 setup.py install --root="$AUTOBUILD_INSTALL_ROOT"
16 if test -f /usr/bin/python3 ; then
17 python3 setup.py build
18 python3 setup.py test
19 python3 setup.py install --root="$AUTOBUILD_INSTALL_ROOT"
22 type -p /usr/bin/rpmbuild > /dev/null 2>&1 || exit 0
24 if [ -n "$AUTOBUILD_COUNTER" ]; then
25 EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER"
26 else
27 NOW=`date +"%s"`
28 EXTRA_RELEASE=".$USER$NOW"
30 rpmbuild --nodeps --define "extra_release $EXTRA_RELEASE" -ta --clean dist/*.tar.gz