mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 22:33:00 -04:00
Move test commands to external script.
This commit is contained in:
parent
944b75d178
commit
500ae4b85e
2 changed files with 14 additions and 13 deletions
13
tests/letstest/travis.sh
Normal file
13
tests/letstest/travis.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash -eux
|
||||
#
|
||||
# Runs test farm tests in Travis.
|
||||
cd $(dirname "$0")
|
||||
|
||||
openssl aes-256-cbc -K $encrypted_9a387195a62e_key -iv $encrypted_9a387195a62e_iv -in travis-test-farm.pem.enc -out travis-test-farm.pem -d
|
||||
|
||||
python multitester.py apache2_targets.yaml ./travis-test-farm.pem none scripts/test_apache2.sh
|
||||
for script in test_leauto_upgrades.sh test_letsencrypt_auto_certonly_standalone.sh test_sdists.sh; do
|
||||
# Sleep after each test to give AWS time to terminate instances.
|
||||
sleep 30s
|
||||
python multitester.py targets.yaml ./travis-test-farm.pem none "scripts/$script"
|
||||
done
|
||||
14
tox.ini
14
tox.ini
|
|
@ -276,21 +276,9 @@ passenv = DOCKER_*
|
|||
setenv = {[testenv:py27-oldest]setenv}
|
||||
|
||||
[testenv:travis-test-farm-tests]
|
||||
changedir = tests/letstest
|
||||
commands =
|
||||
openssl aes-256-cbc -K $encrypted_9a387195a62e_key -iv $encrypted_9a387195a62e_iv -in travis-test-farm.pem.enc -out travis-test-farm.pem -d
|
||||
python multitester.py apache2_targets.yaml ./travis-test-farm.pem none scripts/test_apache2.sh
|
||||
sleep 30s
|
||||
python multitester.py targets.yaml ./travis-test-farm.pem none scripts/test_leauto_upgrades.sh
|
||||
sleep 30s
|
||||
python multitester.py targets.yaml ./travis-test-farm.pem none scripts/test_letsencrypt_auto_certonly_standalone.sh
|
||||
sleep 30s
|
||||
python multitester.py targets.yaml ./travis-test-farm.pem none scripts/test_sdists.sh
|
||||
commands = tests/letstest/travis.sh
|
||||
deps = -r tests/letstest/requirements.txt
|
||||
passenv =
|
||||
AWS_*
|
||||
encrypted_*
|
||||
setenv = AWS_DEFAULT_REGION=us-east-1
|
||||
whitelist_externals =
|
||||
openssl
|
||||
sleep
|
||||
|
|
|
|||
Loading…
Reference in a new issue