mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
* prevent regressions of #5082 * Fix test_leauto_upgrades.sh test_leauto_upgrades.sh has been incorrectly been succeeding because while peep doesn't work with newer versions of pip and letsencrypt-auto would crash, the output included the version number so we reported the test as passing. This updates letsencrypt-auto to the oldest version that still works for the purpose of the test and sets pipefail so errors are properly reported. * Test symlink creation in test_leauto_upgrades.sh * Pin dependencies in test_sdists.sh. * Fix permissions errors in test_tests.sh
37 lines
901 B
Bash
Executable file
37 lines
901 B
Bash
Executable file
#!/bin/sh -xe
|
|
|
|
cd letsencrypt
|
|
./certbot-auto --os-packages-only -n --debug
|
|
|
|
PLUGINS="certbot-apache certbot-nginx"
|
|
PYTHON=$(command -v python2.7 || command -v python27 || command -v python2 || command -v python)
|
|
TEMP_DIR=$(mktemp -d)
|
|
VERSION=$(letsencrypt-auto-source/version.py)
|
|
|
|
# setup venv
|
|
virtualenv --no-site-packages -p $PYTHON --setuptools venv
|
|
. ./venv/bin/activate
|
|
pip install -U pip
|
|
pip install -U setuptools
|
|
pip install --requirement letsencrypt-auto-source/pieces/dependency-requirements.txt
|
|
|
|
# build sdists
|
|
for pkg_dir in acme . $PLUGINS; do
|
|
cd $pkg_dir
|
|
python setup.py clean
|
|
rm -rf build dist
|
|
python setup.py sdist
|
|
mv dist/* $TEMP_DIR
|
|
cd -
|
|
done
|
|
|
|
# test sdists
|
|
cd $TEMP_DIR
|
|
for pkg in acme certbot $PLUGINS; do
|
|
tar -xvf "$pkg-$VERSION.tar.gz"
|
|
cd "$pkg-$VERSION"
|
|
python setup.py build
|
|
python setup.py test
|
|
python setup.py install
|
|
cd -
|
|
done
|