mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 15:22:38 -04:00
* Connect certbot-ci to travis. Remove old bash files. * Configure test-everything * Protect against import error * Remove unused ignore * Better handling of urllib3 * Correct path * Remove a warning * Correct call * Protect atexit register execution * Update docs/contributing.rst Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Update docs/contributing.rst Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Add again some bash scripts to avoid breaking to much retro-compatiblity on third party scripts * Move boulder-v1 and boulder-v2 in nightly tests * Separate oldest unit tests and oldest integration tests * Remove try/except * Test integration included in toxenv * Add a wait to avoid a transient issue on OCSP status in oldest tests * Clean travis.yml, split other tests * Remove useless config * Update .travis.yml Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Update tox.ini * Update tox.ini * Remove pytest-sugar * Remove empty pytest.ini, tests are working without it
30 lines
750 B
Bash
Executable file
30 lines
750 B
Bash
Executable file
#!/bin/bash
|
|
# Download and run Pebble instance for integration testing
|
|
set -xe
|
|
|
|
export GOPATH=${GOPATH:-$HOME/gopath}
|
|
PEBBLEPATH=${PEBBLEPATH:-$GOPATH/pebble}
|
|
if [[ ! -d ${PEBBLEPATH} ]]; then
|
|
git clone --depth=1 https://github.com/letsencrypt/pebble ${PEBBLEPATH}
|
|
fi
|
|
|
|
cd ${PEBBLEPATH}
|
|
|
|
docker-compose up -d
|
|
|
|
set +x # reduce verbosity while waiting for pebble
|
|
for n in `seq 1 150` ; do
|
|
if curl -k https://localhost:14000/dir 2>/dev/null; then
|
|
break
|
|
else
|
|
sleep 1
|
|
fi
|
|
done
|
|
|
|
if ! curl -k https://localhost:14000/dir 2>/dev/null; then
|
|
echo "timed out waiting for pebble to start"
|
|
exit 1
|
|
fi
|
|
|
|
# Setup the DNS resolution used by pebble instance to docker host
|
|
curl -X POST -d '{"ip":"10.30.50.1"}' http://localhost:8055/set-default-ipv4
|