From 49b02e77403d80f234048f7a6f3e2ea96ca20dbf Mon Sep 17 00:00:00 2001 From: Jakub Warmuz Date: Sat, 27 Jun 2015 08:41:45 +0000 Subject: [PATCH] Travis CI: test nginx plugin. --- .travis.yml | 4 +++- tests/boulder-integration.sh | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6e29702ef..59a0ac8ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,9 @@ language: python # http://docs.travis-ci.com/user/ci-environment/#CI-environment-OS -before_install: travis_retry sudo ./bootstrap/ubuntu.sh +before_install: + - travis_retry sudo ./bootstrap/ubuntu.sh + - apt-get install --no-install-recommends nginx-light openssl # using separate envs with different TOXENVs creates 4x1 Travis build # matrix, which allows us to clearly distinguish which component under diff --git a/tests/boulder-integration.sh b/tests/boulder-integration.sh index cbd3e9690..ba2c160e0 100755 --- a/tests/boulder-integration.sh +++ b/tests/boulder-integration.sh @@ -15,6 +15,9 @@ echo "\nRoot integration tests directory: $root" store_flags="--config-dir $root/conf --work-dir $root/work" store_flags="$store_flags --logs-dir $root/logs" +export PATH="/usr/sbin:$PATH" # /usr/sbin/nginx + + common() { # first three flags required, rest is handy defaults letsencrypt \ @@ -60,3 +63,9 @@ do live="$(readlink -f "$root/conf/live/le1.wtf/${x}.pem")" [ "${dir}/${latest}" = "$live" ] # renewer fails this test done + + +if type nginx; +then + . ./tests/boulder-integration-nginx.sh +fi