From 9de2508803de5eb4153d6802779b4658bc66c01c Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Tue, 21 Apr 2020 14:06:24 +0200 Subject: [PATCH] integration test cleanup --- .dockerignore | 1 + integration-test.sh | 43 ++++++++++++++++++++++++++++++------------- test_mod/init.lua | 12 ------------ 3 files changed, 31 insertions(+), 25 deletions(-) diff --git a/.dockerignore b/.dockerignore index 26c02dc..be8f172 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ node_modules test_mod mail_mod +integration-test.sh diff --git a/integration-test.sh b/integration-test.sh index 80de09e..ebf2937 100755 --- a/integration-test.sh +++ b/integration-test.sh @@ -1,25 +1,29 @@ #!/bin/bash +# setup +unset use_proxy +unset http_proxy +unset https_proxy +unset HTTP_PROXY +unset HTTPS_PROXY + # build docker build . -t mail +# run mail-server docker run --name mail --rm \ -e WEBMAILKEY=myserverkey \ -e WEBMAIL_DEBUG=true \ --network host \ mail & -function cleanup { - # cleanup - docker stop mail -} - -trap cleanup EXIT - +# wait for startup bash -c 'while !