Update outdated tests (#6515)

These tests were running on Ubuntu Precise and Debian Wheezy which have reached their end of life and are no longer maintained by the respective distros. This updates the tests to a newer version of Debian and Ubuntu.

* Remove tests on the deprecated precise.

* Add tests for Xenial.

* update Jessie tests to use Wheezy

* update .travis.yml
This commit is contained in:
Brad Warren
2019-01-16 13:17:37 -08:00
committed by GitHub
parent d3a8a54c95
commit 693bac4b49
4 changed files with 15 additions and 17 deletions
+2 -2
View File
@@ -126,11 +126,11 @@ matrix:
services: docker services: docker
if: type = cron if: type = cron
- sudo: required - sudo: required
env: TOXENV=le_auto_precise env: TOXENV=le_auto_xenial
services: docker services: docker
if: type = cron if: type = cron
- sudo: required - sudo: required
env: TOXENV=le_auto_wheezy env: TOXENV=le_auto_jessie
services: docker services: docker
if: type = cron if: type = cron
- sudo: required - sudo: required
@@ -1,7 +1,7 @@
# For running tests, build a docker image with a passwordless sudo and a trust # For running tests, build a docker image with a passwordless sudo and a trust
# store we can manipulate. # store we can manipulate.
FROM debian:wheezy FROM debian:jessie
# Add an unprivileged user: # Add an unprivileged user:
RUN useradd --create-home --home-dir /home/lea --shell /bin/bash --groups sudo --uid 1000 lea RUN useradd --create-home --home-dir /home/lea --shell /bin/bash --groups sudo --uid 1000 lea
@@ -1,7 +1,7 @@
# For running tests, build a docker image with a passwordless sudo and a trust # For running tests, build a docker image with a passwordless sudo and a trust
# store we can manipulate. # store we can manipulate.
FROM ubuntu:precise FROM ubuntu:xenial
# Add an unprivileged user: # Add an unprivileged user:
RUN useradd --create-home --home-dir /home/lea --shell /bin/bash --groups sudo --uid 1000 lea RUN useradd --create-home --home-dir /home/lea --shell /bin/bash --groups sudo --uid 1000 lea
+11 -13
View File
@@ -198,17 +198,6 @@ whitelist_externals =
passenv = passenv =
DOCKER_* DOCKER_*
[testenv:le_auto_precise]
# At the moment, this tests under Python 2.7 only, as only that version is
# readily available on the Precise Docker image.
commands =
docker build -f letsencrypt-auto-source/Dockerfile.precise -t lea letsencrypt-auto-source
docker run --rm -t -i lea
whitelist_externals =
docker
passenv =
DOCKER_*
[testenv:le_auto_trusty] [testenv:le_auto_trusty]
# At the moment, this tests under Python 2.7 only, as only that version is # At the moment, this tests under Python 2.7 only, as only that version is
# readily available on the Trusty Docker image. # readily available on the Trusty Docker image.
@@ -222,11 +211,20 @@ passenv =
DOCKER_* DOCKER_*
TRAVIS_BRANCH TRAVIS_BRANCH
[testenv:le_auto_wheezy] [testenv:le_auto_xenial]
# At the moment, this tests under Python 2.7 only.
commands =
docker build -f letsencrypt-auto-source/Dockerfile.xenial -t lea letsencrypt-auto-source
docker run --rm -t -i lea
whitelist_externals =
docker
passenv = DOCKER_*
[testenv:le_auto_jessie]
# At the moment, this tests under Python 2.7 only, as only that version is # At the moment, this tests under Python 2.7 only, as only that version is
# readily available on the Wheezy Docker image. # readily available on the Wheezy Docker image.
commands = commands =
docker build -f letsencrypt-auto-source/Dockerfile.wheezy -t lea letsencrypt-auto-source docker build -f letsencrypt-auto-source/Dockerfile.jessie -t lea letsencrypt-auto-source
docker run --rm -t -i lea docker run --rm -t -i lea
whitelist_externals = whitelist_externals =
docker docker