Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Warren <bmw@users.noreply.github.com>2019-05-18 02:30:20 +0300
committerGitHub <noreply@github.com>2019-05-18 02:30:20 +0300
commit8b684e9b9543c015669844222b8960e1b9a71e97 (patch)
tree0d43e36d561444decf0d8f99593a32d6258a5309 /tox.ini
parent51a7e7cd1928352a96b6849004e176bbd6cd1863 (diff)
Enable test farm tests in Travis (#7072)
You can see the full test suite running at https://travis-ci.com/certbot/certbot/builds/112291892. A few noteworthy things: --fast is included because without, the tests would sometimes reach Travis' 50 minute timeout even with 1 test script per Travis build. The only script that is run at release time which is not being run here is https://github.com/certbot/certbot/blob/master/tests/letstest/scripts/test_tests.sh because that script runs tests on the packages installed by certbot-auto which won't be updated until midway through a release. We check TRAVIS_PULL_REQUEST and error out if it is not false for simplicity which should be fine because these tests are never run on PRs. The reason it's more complex to run test farm tests on PRs is the test farm tests need a named branch to pull from and Travis effectively merges the PR into the target branch before running tests complicating this. I don't think this should block this PRs, but the one final change we may want to make to the current setup is #7071. * Add encrypted private key. * Add test farm tests to tox and travis. * Change magic profile name. * Further split test farm tests. * Build local branch. * more depth
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini47
1 files changed, 47 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 7f2c18d38..52ae1e97d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -274,3 +274,50 @@ commands =
--acme-server={env:ACME_SERVER:pebble}
passenv = DOCKER_*
setenv = {[testenv:py27-oldest]setenv}
+
+[testenv:travis-test-farm-tests-base]
+changedir = tests/letstest
+commands =
+ ./travis-setup.sh
+deps = -rtests/letstest/requirements.txt
+passenv =
+ AWS_*
+ TRAVIS_*
+ encrypted_*
+setenv = AWS_DEFAULT_REGION=us-east-1
+
+[testenv:travis-test-farm-apache2]
+changedir = {[testenv:travis-test-farm-tests-base]changedir}
+commands =
+ {[testenv:travis-test-farm-tests-base]commands}
+ python multitester.py apache2_targets.yaml travis-test-farm.pem SET_BY_ENV scripts/test_apache2.sh --repo {env:TRAVIS_BUILD_DIR} --branch {env:TRAVIS_BRANCH} --fast
+deps = {[testenv:travis-test-farm-tests-base]deps}
+passenv = {[testenv:travis-test-farm-tests-base]passenv}
+setenv = {[testenv:travis-test-farm-tests-base]setenv}
+
+[testenv:travis-test-farm-leauto-upgrades]
+changedir = {[testenv:travis-test-farm-tests-base]changedir}
+commands =
+ {[testenv:travis-test-farm-tests-base]commands}
+ python multitester.py targets.yaml travis-test-farm.pem SET_BY_ENV scripts/test_leauto_upgrades.sh --repo {env:TRAVIS_BUILD_DIR} --branch {env:TRAVIS_BRANCH} --fast
+deps = {[testenv:travis-test-farm-tests-base]deps}
+passenv = {[testenv:travis-test-farm-tests-base]passenv}
+setenv = {[testenv:travis-test-farm-tests-base]setenv}
+
+[testenv:travis-test-farm-certonly-standalone]
+changedir = {[testenv:travis-test-farm-tests-base]changedir}
+commands =
+ {[testenv:travis-test-farm-tests-base]commands}
+ python multitester.py targets.yaml travis-test-farm.pem SET_BY_ENV scripts/test_letsencrypt_auto_certonly_standalone.sh --repo {env:TRAVIS_BUILD_DIR} --branch {env:TRAVIS_BRANCH} --fast
+deps = {[testenv:travis-test-farm-tests-base]deps}
+passenv = {[testenv:travis-test-farm-tests-base]passenv}
+setenv = {[testenv:travis-test-farm-tests-base]setenv}
+
+[testenv:travis-test-farm-sdists]
+changedir = {[testenv:travis-test-farm-tests-base]changedir}
+commands =
+ {[testenv:travis-test-farm-tests-base]commands}
+ python multitester.py targets.yaml travis-test-farm.pem SET_BY_ENV scripts/test_sdists.sh --repo {env:TRAVIS_BUILD_DIR} --branch {env:TRAVIS_BRANCH} --fast
+deps = {[testenv:travis-test-farm-tests-base]deps}
+passenv = {[testenv:travis-test-farm-tests-base]passenv}
+setenv = {[testenv:travis-test-farm-tests-base]setenv}