Skip to content

Conversation

@josephdpurcell
Copy link
Contributor

Adds Magento extension sniffs.

Completes issue #51.

@josephdpurcell
Copy link
Contributor Author

I see the issue was:

 [RuntimeException] Failed to clone https://github.com/magento/marketplace-eqp.git, git was not found, check that it is installed and in your PATH env. sh: git: not found 

I just pushed a change to make it "vcs" to see if that fixes it.

@josephdpurcell
Copy link
Contributor Author

Same issue, so trying again using a gzip file. It worked locally, so good luck CircleCI!

@josephdpurcell
Copy link
Contributor Author

Success!

Something to consider in review: Is there a way we can add tests to CircleCI?

For example, we could add a test that runs "phpcs -i" and verifies that the coding standards installed correctly, which would just be validating this output:

$ phpcs -i The installed coding standards are Zend, PEAR, PHPCS, PSR2, MySource, Squiz, PSR1, Drupal, DrupalPractice, WordPress-Docs, WordPress-VIP, WordPress-Core, WordPress, WordPress-Extra, Yii2, MEQP2 and MEQP1 
@dblandin
Copy link
Contributor

dblandin commented Mar 6, 2017

Awesome! Thanks for the PR @josephdpurcell!

I think it's reasonable to add git as an installed package within this project's Dockerfile to address the composer error you ran into.

Should be as simple as adding git to the apk --update add command arguments.

Something to consider in review: Is there a way we can add tests to CircleCI?

For example, we could add a test that runs "phpcs -i" and verifies that the coding standards installed correctly, which would just be validating this output

That would be a great start!

@josephdpurcell josephdpurcell force-pushed the feature/magento-extension-standards branch from 2a87e4b to 67c2278 Compare March 7, 2017 00:54
@josephdpurcell
Copy link
Contributor Author

It's failing with error:

OK: 24 MiB in 30 packages /bin/sh: git: not found The command '/bin/sh -c apk --update add php7-common php7-ctype php7-iconv php7-json php7-mbstring php7-openssl php7-pcntl php7-phar php7-sockets curl && git && rm /var/cache/apk/* && ln -s /usr/bin/php7 /usr/bin/php' returned a non-zero code: 127 make: *** [image] Error 1 

It doesn't look like git is getting installed. Any thoughts?

@josephdpurcell josephdpurcell force-pushed the feature/magento-extension-standards branch from 33dbc16 to 02f800c Compare March 7, 2017 01:09
@josephdpurcell
Copy link
Contributor Author

I attempted to follow https://discuss.circleci.com/t/bin-sh-git-not-found/9737 and add openssh, but still git appears to not install.

@dblandin dblandin merged commit e416f38 into codeclimate:master Mar 10, 2017
@josephdpurcell
Copy link
Contributor Author

Doh! Good catch @dblandin! And yes to removing the openssh package.

I'll try to follow up later with tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants