diff options
author | Joris Roovers <joris.roovers@gmail.com> | 2019-06-18 13:03:45 +0200 |
---|---|---|
committer | Joris Roovers <joris.roovers@gmail.com> | 2019-06-18 14:34:06 +0200 |
commit | 3fc4c03276b0e15368da03eccb2b5d95e91c79a7 (patch) | |
tree | 010dbabe3c8b208f44977707d3da5ec23cd9e7d3 /run_tests.sh | |
parent | 157c0783170e290415e9eef4960b868bd42486a4 (diff) |
Updated dependencies
- Updated most dependencies to latest (or newer) versions
- Removed dependency pinning for Python 2.6 and 3.3
- Minor code-tweaks to deal with dependency changes
- Added pypi download stats to `run_tests.sh -s`
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/run_tests.sh b/run_tests.sh index 97ab9c0..ced36ae 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -93,7 +93,7 @@ run_unit_tests(){ clean # py.test -s => print standard output (i.e. show print statement output) # -rw => print warnings - OMIT="*pypy*" + OMIT="*pypy*,*venv*,*virtualenv*,*gitlint/tests/*" if [ -n "$testargs" ]; then coverage run --omit=$OMIT -m pytest -rw -s "$testargs" else @@ -186,7 +186,7 @@ run_build_test(){ run_stats(){ clean # required for py.test to count properly echo "*** Code ***" - radon raw -s gitlint | tail -n 6 + radon raw -s gitlint | tail -n 11 echo "*** Docs ***" echo " Markdown: $(cat docs/*.md | wc -l | tr -d " ") lines" echo "*** Tests ***" @@ -200,6 +200,12 @@ run_stats(){ echo " First commit: $(git log --pretty="%aD" $(git rev-list --max-parents=0 HEAD))" echo " Contributors: $(git log --format='%aN' | sort -u | wc -l | tr -d ' ')" echo " Releases (tags): $(git tag --list | wc -l | tr -d ' ')" + # PyPi API: https://pypistats.org/api/ + echo "*** PyPi ***" + stats=$(curl -s https://pypistats.org/api/packages/gitlint/recent) + echo " Last Month: $(echo $stats | jq .data.last_month)" + echo " Last Week: $(echo $stats | jq .data.last_week)" + echo " Last Day: $(echo $stats | jq .data.last_day)" } clean(){ |