-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring scripts to par with httpx
- Loading branch information
Yeray Diaz Diaz
authored
May 20, 2020
1 parent
30847a0
commit 7cfb2d5
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh -e | ||
|
||
export PREFIX="" | ||
if [ -d 'venv' ] ; then | ||
export PREFIX="venv/bin/" | ||
fi | ||
export SOURCE_FILES="httpx tests" | ||
|
||
set -x | ||
|
||
${PREFIX}coverage report --show-missing --skip-covered --fail-under=91 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,28 @@ | ||
#!/bin/sh -e | ||
#!/bin/sh | ||
|
||
export PREFIX="" | ||
if [ -d 'venv' ] ; then | ||
export PREFIX="venv/bin/" | ||
fi | ||
|
||
set -x | ||
|
||
if [ -z $GITHUB_ACTIONS ]; then | ||
set +e | ||
scripts/check | ||
while [ $? -ne 0 ]; do | ||
read -p "Running 'scripts/check' failed. Do you want to run 'scripts/lint' now? [y/N] " yn | ||
case $yn in | ||
[Yy]* ) :;; | ||
* ) exit;; | ||
esac | ||
scripts/lint | ||
scripts/check | ||
done | ||
fi | ||
|
||
set -ex | ||
|
||
${PREFIX}pytest $@ | ||
|
||
if [ -z $GITHUB_ACTIONS ]; then | ||
scripts/coverage | ||
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