Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate mail tests #18393

Merged
merged 10 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions .github/actions/test_tests-imap.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
#!/bin/bash
set -e -u -x -o pipefail

ATOUM_ADDITIONNAL_OPTIONS=""
PHPUNIT_ADDITIONNAL_OPTIONS=""
if [[ "$CODE_COVERAGE" = true ]]; then
export COVERAGE_DIR="coverage-imap"
PHPUNIT_ADDITIONNAL_OPTIONS="--coverage-filter src --coverage-clover phpunit/$COVERAGE_DIR/clover.xml"
else
ATOUM_ADDITIONNAL_OPTIONS="--no-code-coverage";
PHPUNIT_ADDITIONNAL_OPTIONS="--no-coverage";
fi

vendor/bin/atoum \
-p 'php -d memory_limit=512M' \
--debug \
--force-terminal \
--use-dot-report \
--bootstrap-file tests/bootstrap.php \
--fail-if-void-methods \
--fail-if-skipped-methods \
$ATOUM_ADDITIONNAL_OPTIONS \
--max-children-number 1 \
-d tests/imap
vendor/bin/phpunit $PHPUNIT_ADDITIONNAL_OPTIONS phpunit/imap

unset COVERAGE_DIR
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ jobs:
run: |
.github/actions/init_initialize-9.5-db.sh
docker compose exec -T app .github/actions/test_update-from-9.5.sh
- name: "IMAP tests"
if: "${{ success() || failure() }}"
run: |
.github/actions/init_initialize-imap-fixtures.sh
docker compose exec -T app .github/actions/test_tests-imap.sh
- name: "PHPUnit tests"
if: "${{ success() || failure() }}"
run: |
Expand All @@ -211,11 +216,6 @@ jobs:
run: |
.github/actions/init_initialize-ldap-fixtures.sh
docker compose exec -T app .github/actions/test_tests-ldap.sh
- name: "IMAP tests"
if: "${{ success() || failure() }}"
run: |
.github/actions/init_initialize-imap-fixtures.sh
docker compose exec -T app .github/actions/test_tests-imap.sh
- name: "WEB tests"
if: "${{ success() || failure() }}"
run: |
Expand Down
Loading
Loading