mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 00:22:04 +02:00
Get le-auto tests running on Travis.
This commit is contained in:
+3
-2
@@ -1,6 +1,7 @@
|
|||||||
language: python
|
language: python
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
- docker
|
||||||
- rabbitmq
|
- rabbitmq
|
||||||
- mariadb
|
- mariadb
|
||||||
# apacheconftest
|
# apacheconftest
|
||||||
@@ -22,6 +23,7 @@ env:
|
|||||||
matrix:
|
matrix:
|
||||||
- TOXENV=py26 BOULDER_INTEGRATION=1
|
- TOXENV=py26 BOULDER_INTEGRATION=1
|
||||||
- TOXENV=py27 BOULDER_INTEGRATION=1
|
- TOXENV=py27 BOULDER_INTEGRATION=1
|
||||||
|
- TOXENV=le_auto
|
||||||
- TOXENV=lint
|
- TOXENV=lint
|
||||||
- TOXENV=cover
|
- TOXENV=cover
|
||||||
# Disabled for now due to requiring sudo -> causing more boulder integration
|
# Disabled for now due to requiring sudo -> causing more boulder integration
|
||||||
@@ -37,8 +39,7 @@ branches:
|
|||||||
- master
|
- master
|
||||||
- /^test-.*$/
|
- /^test-.*$/
|
||||||
|
|
||||||
# container-based infrastructure
|
sudo: required
|
||||||
sudo: false
|
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
# make sure simplehttp simple verification works (custom /etc/hosts)
|
# make sure simplehttp simple verification works (custom /etc/hosts)
|
||||||
|
|||||||
@@ -30,4 +30,4 @@ COPY . /home/lea/letsencrypt/letsencrypt-auto-source
|
|||||||
USER lea
|
USER lea
|
||||||
WORKDIR /home/lea
|
WORKDIR /home/lea
|
||||||
|
|
||||||
CMD ["nosetests", "-s", "letsencrypt/letsencrypt-auto-source/tests"]
|
CMD ["nosetests", "-v", "-s", "letsencrypt/letsencrypt-auto-source/tests"]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"""Tests for letsencrypt-auto
|
"""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
|
./build.py && docker build -t lea . && docker run --rm -t -i lea
|
||||||
|
|
||||||
|
|||||||
@@ -75,3 +75,13 @@ setenv =
|
|||||||
commands =
|
commands =
|
||||||
pip install -e acme -e .[dev] -e letsencrypt-apache -e letsencrypt-nginx -e letsencrypt-compatibility-test -e letshelp-letsencrypt
|
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
|
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_*
|
||||||
Reference in New Issue
Block a user