Skip to content

Test IMAP on Azure #6162

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

Closed
wants to merge 3 commits into from
Closed

Test IMAP on Azure #6162

wants to merge 3 commits into from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Sep 18, 2020

Took me a while but this should build and test the IMAP extension on Azure Pipelines.

@@ -60,5 +60,6 @@ steps:
--with-unixODBC \
--enable-werror \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d
--with-config-file-scan-dir=/etc/php.d \
--with-imap --with-kerberos --with-imap-ssl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move these before --enable-werror and one per line.

@@ -2,13 +2,13 @@
extension_loaded('imap') or die('skip imap extension not available in this build');

// Change these to make tests run successfully
$mailbox = '{localhost/norsh}';
$mailbox = '{127.0.0.1:143/debug/norsh}';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/debug intentional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used it to debug the connection locally and I think it would be rather useful to leave it on

$username = '[email protected]';
$password = 'p4ssw0rd';
$options = OP_HALFOPEN; // this should be enough to verify server present
$retries = 0; // don't retry connect on failure

$mbox = @imap_open($mailbox, $username, $password, $options, $retries);
$mbox = imap_open($mailbox, $username, $password, $options, $retries);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suppression needs to stay here, otherwise SKIPIF will break.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to revert while I was debugging the connection

Drop various ZPP checks and make them PASS
Add CONFLICT file as the tests all hit the same mailbox
@php-pulls php-pulls closed this in ef9359d Sep 18, 2020
@Girgias Girgias deleted the imap-set-up-ci branch September 18, 2020 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants