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

Enable AppVeyor integration for Windows tests #378

Merged
merged 8 commits into from
Jan 5, 2018

Conversation

lisachenko
Copy link
Member

It would be nice to run tests on Windows platform too to prevent errors on Windows platform

@lisachenko
Copy link
Member Author

@TheCelavi Looks like we have issues on Windows platform :) Some commands could not be executed in tests. See PR details for appveyor...

And another part of errors is related to Win-slashes...

@lisachenko
Copy link
Member Author

Looks like test results can be uploaded in jUnit format to AppVeyor appveyor/ci#92 (comment)

Need to add this as well.

@TheCelavi
Copy link
Contributor

Ok, got it. Hate Windows!

Will setup an env and fix those...

@@ -114,16 +115,17 @@ protected function loadConfiguration()
*/
protected function execute($command, $args = null, $expectSuccess = true, $expectedExitCode = null)
{
$commandStatement = sprintf('GO_AOP_CONFIGURATION=%s php %s %s %s %s',
$this->getConfigurationName(),
$phpExecutable = (New PhpExecutableFinder())->find();

Choose a reason for hiding this comment

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

PHP keywords must be lowercase; expected new but found New

$commandStatement = sprintf('GO_AOP_CONFIGURATION=%s php %s %s %s %s',
$this->getConfigurationName(),
$phpExecutable = (New PhpExecutableFinder())->find();
$commandStatement = sprintf('%s %s %s %s %s',

Choose a reason for hiding this comment

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

Opening parenthesis of a multi-line function call must be the last content on the line

@lisachenko
Copy link
Member Author

Oh, crap...

Errors

Symfony\Component\Filesystem\Exception\IOException: Failed to remove directory "C:\projects\goaop\tests\Fixtures\project\web/../var/cache/aspect\_annotations\f6": rmdir(C:\projects\goaop\tests\Fixtures\project\web/../var/cache/aspect\_annotations\f6): Directory not empty.

are present because Windows has a 260 symbols length limit for filenames and couldn't delete file for annotation that 260+ symbols long.

$commandStatement = sprintf('GO_AOP_CONFIGURATION=%s php %s %s %s %s',
$this->getConfigurationName(),
$phpExecutable = (new PhpExecutableFinder())->find();
$commandStatement = sprintf('%s %s %s %s %s',

Choose a reason for hiding this comment

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

Opening parenthesis of a multi-line function call must be the last content on the line

@scrutinizer-notifier
Copy link

The inspection completed: No new issues

@AppVeyorBot
Copy link

@lisachenko
Copy link
Member Author

Woot! It's working :) Not ideal, but it's good start point for now.

@lisachenko lisachenko merged commit 152abbf into 2.x Jan 5, 2018
@lisachenko lisachenko deleted the feature/app-veyor-integration branch January 5, 2018 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants