mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 14:26:10 -04:00
* Revert "Fix pytest on macOS in Travis (#5360)"
This reverts commit 5388842e5b.
* remove oldest passenv
23 lines
781 B
Bash
Executable file
23 lines
781 B
Bash
Executable file
#!/bin/sh -e
|
|
# pip installs the requested packages in editable mode and runs unit tests on
|
|
# them. Each package is installed and tested in the order they are provided
|
|
# before the script moves on to the next package. If CERTBOT_NO_PIN is set not
|
|
# set to 1, packages are installed using pinned versions of all of our
|
|
# dependencies. See pip_install.sh for more information on the versions pinned
|
|
# to.
|
|
|
|
if [ "$CERTBOT_NO_PIN" = 1 ]; then
|
|
pip_install="pip install -q -e"
|
|
else
|
|
pip_install="$(dirname $0)/pip_install_editable.sh"
|
|
fi
|
|
|
|
set -x
|
|
for requirement in "$@" ; do
|
|
$pip_install $requirement
|
|
pkg=$(echo $requirement | cut -f1 -d\[) # remove any extras such as [dev]
|
|
if [ $pkg = "." ]; then
|
|
pkg="certbot"
|
|
fi
|
|
pytest --numprocesses auto --quiet --pyargs $pkg
|
|
done
|