mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-02-20 01:21:20 +01:00
19 lines
584 B
Bash
Executable File
19 lines
584 B
Bash
Executable File
#!/bin/bash
|
|
|
|
testsdir=$(realpath $(dirname $0))
|
|
cont_name="roundcubetest-dovecot"
|
|
|
|
ROUNDCUBE_TEST_IMAP_SERVER_IMAGE="docker.io/dovecot/dovecot:latest"
|
|
|
|
test -f "$testsdir/.env" && source "$testsdir/.env"
|
|
|
|
docker run -it --rm -d --name "$cont_name" \
|
|
-p 143:143 \
|
|
-v "$testsdir/data/maildir:/srv/mail/test" \
|
|
-v "$testsdir/dovecot-maildir.conf:/etc/dovecot/conf.d/dovecot-maildir.conf" \
|
|
"$ROUNDCUBE_TEST_IMAP_SERVER_IMAGE" >/dev/null || exit 1
|
|
|
|
"$testsdir/../../vendor/bin/phpunit" -c "$testsdir/phpunit.xml" --fail-on-warning --fail-on-risky
|
|
|
|
docker stop "$cont_name" >/dev/null
|