[gentoo-portage-dev] [PATCH 3/3] mkrelease: add a --runtests shortcut

2014-01-05 Thread Mike Frysinger
This automates the release+test cycle a bit so people don't have to do
it all by hand.
---
 DEVELOPING   |  7 ++-
 mkrelease.sh | 15 +--
 2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/DEVELOPING b/DEVELOPING
index 7aac81b..b704a50 100644
--- a/DEVELOPING
+++ b/DEVELOPING
@@ -167,11 +167,8 @@ Releases
 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).
 
diff --git a/mkrelease.sh b/mkrelease.sh
index 50bdb3c..334b4fb 100755
--- a/mkrelease.sh
+++ b/mkrelease.sh
@@ -8,9 +8,10 @@ BRANCH=${BRANCH:-master}
 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}
 }
 
@@ -19,7 +20,7 @@ die() {
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
 
@@ -42,6 +43,10 @@ while true; do
-h|--help)
usage
;;
+   --runtests)
+   RUNTESTS=true
+   shift
+   ;;
--)
shift
break
@@ -78,6 +83,12 @@ cp -a ${SOURCE_DIR}/{bin,cnf,doc,man,misc,pym} 
${RELEASE_DIR}/ || die direc
 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
-- 
1.8.4.3




Re: [gentoo-portage-dev] [PATCH 3/3] mkrelease: add a --runtests shortcut

2014-01-05 Thread Sebastian Luther
Am 05.01.2014 16:50, schrieb Mike Frysinger:
 This automates the release+test cycle a bit so people don't have to do
 it all by hand.
 ---
  DEVELOPING   |  7 ++-
  mkrelease.sh | 15 +--
  2 files changed, 15 insertions(+), 7 deletions(-)
 
 diff --git a/DEVELOPING b/DEVELOPING
 index 7aac81b..b704a50 100644
 --- a/DEVELOPING
 +++ b/DEVELOPING
 @@ -167,11 +167,8 @@ Releases
  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

Shouldn't this be:
./mkrelease.sh --changelog-rev v2.2.7 --tag 2.2.8 --runtests 2.2.8
?

  Make sure you have all supported python versions installed first
  (see PYTHON_SUPPORTED_VERSIONS in runtests.sh).
  
 diff --git a/mkrelease.sh b/mkrelease.sh
 index 50bdb3c..334b4fb 100755
 --- a/mkrelease.sh
 +++ b/mkrelease.sh
 @@ -8,9 +8,10 @@ BRANCH=${BRANCH:-master}
  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}
  }
  
 @@ -19,7 +20,7 @@ die() {
   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
  
 @@ -42,6 +43,10 @@ while true; do
   -h|--help)
   usage
   ;;
 + --runtests)
 + RUNTESTS=true
 + shift
 + ;;
   --)
   shift
   break
 @@ -78,6 +83,12 @@ cp -a ${SOURCE_DIR}/{bin,cnf,doc,man,misc,pym} 
 ${RELEASE_DIR}/ || die direc
  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
 




Re: [gentoo-portage-dev] [PATCH 3/3] mkrelease: add a --runtests shortcut

2014-01-05 Thread Brian Dolbec
On Sun, 2014-01-05 at 10:50 -0500, Mike Frysinger wrote:
 This automates the release+test cycle a bit so people don't have to do
 it all by hand.
 ---
  DEVELOPING   |  7 ++-
  mkrelease.sh | 15 +--
  2 files changed, 15 insertions(+), 7 deletions(-)
 
 diff --git a/DEVELOPING b/DEVELOPING
 index 7aac81b..b704a50 100644
 --- a/DEVELOPING
 +++ b/DEVELOPING
 @@ -167,11 +167,8 @@ Releases
  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).
  
 diff --git a/mkrelease.sh b/mkrelease.sh
 index 50bdb3c..334b4fb 100755
 --- a/mkrelease.sh
 +++ b/mkrelease.sh
 @@ -8,9 +8,10 @@ BRANCH=${BRANCH:-master}
  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}
  }
  
 @@ -19,7 +20,7 @@ die() {
   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
  
 @@ -42,6 +43,10 @@ while true; do
   -h|--help)
   usage
   ;;
 + --runtests)
 + RUNTESTS=true
 + shift
 + ;;
   --)
   shift
   break
 @@ -78,6 +83,12 @@ cp -a ${SOURCE_DIR}/{bin,cnf,doc,man,misc,pym} 
 ${RELEASE_DIR}/ || die direc
  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


I've added them to my checkout and running it now.

If it all works as it should, I'll push them all with the 2.2.8 release.
They do not affect portage/emerge, so shouldn't need more testing time.


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-portage-dev] [PATCH 3/3] mkrelease: add a --runtests shortcut

2014-01-05 Thread Mike Frysinger
On Sunday 05 January 2014 13:23:38 Brian Dolbec wrote:
 On Sun, 2014-01-05 at 10:50 -0500, Mike Frysinger wrote:
  This automates the release+test cycle a bit so people don't have to do
  it all by hand.

 I've added them to my checkout and running it now.
 
 If it all works as it should, I'll push them all with the 2.2.8 release.
 They do not affect portage/emerge, so shouldn't need more testing time.

i've pushed all but this last one now.  feel free to push it once you've 
verified things on your side.
-mike


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-portage-dev] [PATCH 3/3] mkrelease: add a --runtests shortcut

2014-01-05 Thread Sebastian Luther
Am 05.01.2014 20:34, schrieb Mike Frysinger:
 On Sunday 05 January 2014 13:04:04 Sebastian Luther wrote:
 Am 05.01.2014 16:50, schrieb Mike Frysinger:
 +Then create the tarball and run the tests: +   ./mkrelease.sh
 --changelog-rev v2.2.7 --tag --runtests 2.2.8
 
 Shouldn't this be: ./mkrelease.sh --changelog-rev v2.2.7 --tag
 2.2.8 --runtests 2.2.8
 
 nope.  the --tag option doesn't take any arguments.  the old
 mkrelease would silently ignore extra args, but the updated one i
 pushed will now fail on this.

Ok.

 
 also, please snip any content you're not replying to.  makes it
 harder to scan for responses when there's a lot of untouched
 content. -mike
 

Ok.