diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-28 17:34:17 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-30 12:58:38 +0300 |
commit | 731213baa1b25e739ba8e0c3d4c75ec13f05d4df (patch) | |
tree | 5aa0b7c8c6b8627b030773c0279e159b2f9316de /Makefile | |
parent | debd5ae740251ef315830370329911e995b01a7a (diff) |
Use a Github action for integration tests
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 23 insertions, 5 deletions
@@ -8,9 +8,9 @@ source_dir=$(build_dir)/source sign_dir=$(build_dir)/sign package_name=$(app_name) cert_dir=$(HOME)/.nextcloud/certificates -docker_image=christophwurst/nextcloud-mail-test-docker -mail_user=user@domain.tld -mail_pwd=mypassword +docker_image=iredmail/mariadb:nightly +mail_user=postmaster@mail.domain.tld +mail_pwd=my-secret-password all: appstore @@ -53,13 +53,31 @@ start-imap-docker: docker pull $(docker_image) docker run --name="ncimaptest" -d \ -p 993:993 \ - -e POSTFIX_HOSTNAME=mail.domain.tld $(docker_image) + --hostname mail.domain.tld \ + -e HOSTNAME=mail.domain.tld \ + -e FIRST_MAIL_DOMAIN=mail.domain.tld \ + -e FIRST_MAIL_DOMAIN_ADMIN_PASSWORD=my-secret-password \ + -e MLMMJADMIN_API_TOKEN=szpUAZAH4H+jyEzH3GPcsVjOGYI1I6VohT7MLaxfZXw= \ + -e ROUNDCUBE_DES_KEY=7RPfVaqOfQUIkog68QZQxh0qxUFrK8BdwOQeVxJaVrs= \ + $(docker_image) + +start-docker: + docker pull antespi/docker-imap-devel:latest + docker run --name="ncmailtest" -d \ + -p 25:25 \ + -p 143:143 \ + -p 993:993 \ + --hostname mail.domain.tld \ + -e MAILNAME=mail.domain.tld \ + -e MAIL_ADDRESS=user@domain.tld \ + -e MAIL_PASS=mypassword \ + antespi/docker-imap-devel:latest start-smtp-docker: docker pull catatnight/postfix docker run --name="ncsmtptest" -d \ -e maildomain=domain.tld \ - -e smtp_user=user@domain.tld:mypassword \ + -e smtp_user=postmaster@mail.domain.tld:my-secret-password \ -p 2525:25 \ catatnight/postfix |