First create a git tag for this release:
git tag v2.2.8
-Then create the tarball:
- ./mkrelease.sh --changelog-rev v2.2.7 --tag 2.2.8
-
-Unpack the tarball and run tests:
- ./runtests.sh --python-versions=supported
+Then create the tarball and run the tests:
+ ./mkrelease.sh --changelog-rev v2.2.7 --tag --runtests 2.2.8
Make sure you have all supported python versions installed first
(see PYTHON_SUPPORTED_VERSIONS in runtests.sh).
USE_TAG=false
CHANGELOG_REVISION=
UPLOAD_LOCATION=
+RUNTESTS=false
usage() {
- echo "Usage: ${0##*/} [--changelog-rev <tree-ish>] [-t|--tag] [-u|--upload <location>] <version>"
+ echo "Usage: ${0##*/} [--changelog-rev <tree-ish>] [-t|--tag] [-u|--upload <location>] [--runtests] <version>"
exit ${1:-0}
}
usage 1
}
-ARGS=$(getopt -o htu: --long help,changelog-rev:,tag,upload: \
+ARGS=$(getopt -o htu: --long help,changelog-rev:,runtests,tag,upload: \
-n "${0##*/}" -- "$@")
[ $? != 0 ] && die "initialization error"
-h|--help)
usage
;;
+ --runtests)
+ RUNTESTS=true
+ shift
+ ;;
--)
shift
break
cp "${SOURCE_DIR}/"{DEVELOPING,LICENSE,Makefile,NEWS,README,RELEASE-NOTES,TEST-NOTES} \
"${RELEASE_DIR}/" || die "file copy failed"
+if [[ ${RUNTESTS} == "true" ]] ; then
+ pushd "${SOURCE_DIR}" >/dev/null
+ ./runtests.sh --python-versions=supported || die "tests failed"
+ popd >/dev/null
+fi
+
rm -rf "${SOURCE_DIR}" || die "directory cleanup failed"
echo ">>> Setting portage.VERSION"