Get le-auto tests running on Travis.

This commit is contained in:
Erik Rose 2016-01-08 16:55:52 -05:00
parent f2586fbc11
commit 5512838377
4 changed files with 15 additions and 4 deletions

View file

@ -1,6 +1,7 @@
language: python
services:
- docker
- rabbitmq
- mariadb
# apacheconftest
@ -22,6 +23,7 @@ env:
matrix:
- TOXENV=py26 BOULDER_INTEGRATION=1
- TOXENV=py27 BOULDER_INTEGRATION=1
- TOXENV=le_auto
- TOXENV=lint
- TOXENV=cover
# Disabled for now due to requiring sudo -> causing more boulder integration
@ -37,8 +39,7 @@ branches:
- master
- /^test-.*$/
# container-based infrastructure
sudo: false
sudo: required
addons:
# make sure simplehttp simple verification works (custom /etc/hosts)

View file

@ -30,4 +30,4 @@ COPY . /home/lea/letsencrypt/letsencrypt-auto-source
USER lea
WORKDIR /home/lea
CMD ["nosetests", "-s", "letsencrypt/letsencrypt-auto-source/tests"]
CMD ["nosetests", "-v", "-s", "letsencrypt/letsencrypt-auto-source/tests"]

View file

@ -1,6 +1,6 @@
"""Tests for letsencrypt-auto
For now, run these by saying... ::
Run these locally by saying... ::
./build.py && docker build -t lea . && docker run --rm -t -i lea

10
tox.ini
View file

@ -75,3 +75,13 @@ setenv =
commands =
pip install -e acme -e .[dev] -e letsencrypt-apache -e letsencrypt-nginx -e letsencrypt-compatibility-test -e letshelp-letsencrypt
sudo ./letsencrypt-apache/letsencrypt_apache/tests/apache-conf-files/apache-conf-test --debian-modules
[testenv:le_auto]
# At the moment, this tests under Python 2.7 only, as only that version is
# readily available on the Trusty Docker image.
commands =
docker build -t lea letsencrypt-auto-source
docker run --rm -t -i lea
whitelist_externals =
docker
passenv = DOCKER_*