-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
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=$? |
There was a problem hiding this comment.
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 &&
?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for Kamil's obsession.
There's a possibility that Behat fails whereas Travis passes. Without PayPal:
With PayPal:
We have to change: bin/behat ; EXIT_CODE = $? to: bin/behat || EXIT_CODE = $? |
It won't work anyway, but thanks for tips 👍 |
fi; | ||
|
||
exit $EXIT_CODE | ||
checkBuild $EXIT_BEHAT_TEST_CODE $EXIT_BEHAT_PAYPAL_TEST_CODE |
There was a problem hiding this comment.
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
[Checkout] Quick fix behat command on travis
👍 |