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

[Checkout] Quick fix behat command on travis #4232

Merged
merged 1 commit into from
Feb 23, 2016

Conversation

Arminek
Copy link
Contributor

@Arminek Arminek commented Feb 19, 2016

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
License MIT

fi;

if [[ $EXIT_CODE -eq 1 && $TRAVIS_PULL_REQUEST = false && ! -z "$SYMFONY__PAYPAL__EXPRESS_CHECKOUT__USERNAME" ]]; then
bin/behat --strict -p cached --rerun --tags=paypal; EXIT_CODE=$?
bin/behat --strict -p cached --rerun --tags "paypal&&~todo"; EXIT_CODE=$?
Copy link
Contributor

Choose a reason for hiding this comment

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

Just my obsession, can we make a space before and after &&?

Copy link
Contributor

Choose a reason for hiding this comment

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

And add @ before tag names to be consistent with suites filters etc.

Copy link
Member

Choose a reason for hiding this comment

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

👍 for Kamil's obsession.

@pamil
Copy link
Contributor

pamil commented Feb 19, 2016

There's a possibility that Behat fails whereas Travis passes.

Without PayPal:

  1. bin/behat -> $EXIT_CODE = 1
  2. bin/behat -> $EXIT_CODE = 1
    Exit 1

With PayPal:

  1. bin/behat -> $EXIT_CODE = 1
  2. bin/behat -> $EXIT_CODE = 1
  3. bin/behat --tags "paypal" -> $EXIT_CODE = 0 (PayPal suite passes)
    Exit 0

We have to change:

bin/behat ; EXIT_CODE = $?

to:

bin/behat || EXIT_CODE = $?

@Arminek
Copy link
Contributor Author

Arminek commented Feb 19, 2016

It won't work anyway, but thanks for tips 👍

fi;

exit $EXIT_CODE
checkBuild $EXIT_BEHAT_TEST_CODE $EXIT_BEHAT_PAYPAL_TEST_CODE
Copy link
Contributor

Choose a reason for hiding this comment

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

The following will not work?

$EXIT_CODE = [ $EXIT_BEHAT_TEST_CODE -eq 0 ]] && [[ $EXIT_BEHAT_PAYPAL_TEST_CODE -eq 0 ]

exit $EXIT_CODE

pjedrzejewski pushed a commit that referenced this pull request Feb 23, 2016
[Checkout] Quick fix behat command on travis
@pjedrzejewski pjedrzejewski merged commit ca905fc into Sylius:master Feb 23, 2016
@pjedrzejewski
Copy link
Member

👍

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.

None yet

4 participants