Skip to content

Commit

Permalink
CI fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvolgyes committed May 29, 2018
1 parent 344743c commit 776a46a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/zenodo_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def check_hash(filename, checksum):
options.record = args[0]
except ValueError:
options.doi = args[0]
elif options.doi is None and options.record is None:
parser.print_help()
sys.exit(0)

if options.doi is not None:
url = options.doi
Expand Down
2 changes: 1 addition & 1 deletion tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e
DIR=$(dirname "$0")

PYTHON="python -m coverage run -a --source $DIR/../src/"
PYTHON="python3 -m coverage run -a --source $DIR/../src/"
$PYTHON $DIR/../src/zenodo_get.py
$PYTHON $DIR/../src/zenodo_get.py -h

Expand Down
8 changes: 4 additions & 4 deletions tests/win-test.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
REM #

cd tests
python ../src/zenodo_get.py 10.5281/zenodo.1215979
python ../src/zenodo_get.py -d 10.5281/zenodo.1215979
python ../src/zenodo_get.py -r 1215979
python ../src/zenodo_get.py 1215979
python3 ../src/zenodo_get.py 10.5281/zenodo.1215979
python3 ../src/zenodo_get.py -d 10.5281/zenodo.1215979
python3 ../src/zenodo_get.py -r 1215979
python3 ../src/zenodo_get.py 1215979

0 comments on commit 776a46a

Please sign in to comment.