Browse Source

Fix release script once more

rtmp_test
Philipp Hagemeister 12 years ago
parent
commit
964ac8b584
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      devscripts/release.sh

+ 4
- 3
devscripts/release.sh View File

@ -14,11 +14,12 @@
set -e set -e
skip_test=false
skip_tests=false
if [ "$1" = '--skip-test' ]; then if [ "$1" = '--skip-test' ]; then
skip_test=true
skip_tests=true
shift shift
fi fi
if [ -z "$1" ]; then echo "ERROR: specify version number like this: $0 1994.09.06"; exit 1; fi if [ -z "$1" ]; then echo "ERROR: specify version number like this: $0 1994.09.06"; exit 1; fi
version="$1" version="$1"
if [ ! -z "`git tag | grep "$version"`" ]; then echo 'ERROR: version already present'; exit 1; fi if [ ! -z "`git tag | grep "$version"`" ]; then echo 'ERROR: version already present'; exit 1; fi
@ -27,7 +28,7 @@ if [ ! -f "updates_key.pem" ]; then echo 'ERROR: updates_key.pem missing'; exit
/bin/echo -e "\n### First of all, testing..." /bin/echo -e "\n### First of all, testing..."
make cleanall make cleanall
if $skip_tests; then
if $skip_tests ; then
echo 'SKIPPING TESTS' echo 'SKIPPING TESTS'
else else
nosetests --verbose --with-coverage --cover-package=youtube_dl --cover-html test --stop || exit 1 nosetests --verbose --with-coverage --cover-package=youtube_dl --cover-html test --stop || exit 1


Loading…
Cancel
Save