Created
May 2, 2019 12:42
-
-
Save Psycojoker/34b70adcbe91c06064ccf7f10cf6d825 to your computer and use it in GitHub Desktop.
checkout outdated dependencies with tox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
outdated_dependencies=$(pip list -o) | |
number_of_lines="$(echo -e "$outdated_dependencies" | grep "." | wc -l)" | |
if (( $number_of_lines > 0 )) | |
then | |
echo -e "$outdated_dependencies" | |
exit 1 | |
else | |
exit 0 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tox] | |
envlist = ...,pip-outdated | |
# ... | |
[testenv:pip-outdated] | |
whitelist_externals = bash | |
deps = | |
-rrequirements.txt | |
commands = | |
pip install -e . | |
bash check_outdated_dependencies.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment