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

Fixed issue causing static test failure to report success on Travis #9872

Merged
merged 1 commit into from
Jun 9, 2017

Conversation

davidalger
Copy link
Member

@davidalger davidalger commented Jun 7, 2017

Fixed Issues

There was a regression introduced in e68d69c as a result of moving the test script from .travis.yml to the script.sh file. The script was not configured to exit on command failure, which caused the static tests to succeed when phpunit fails but the subsequent grunt static command met success.

Work Done

I've moved test script back into .travis.yml both to resolve the failure, but also to preserve proper verboseness of tests when they fail. Experimented heavily here when I reworked the entire travis configuration a year or two ago, and it's best for these to be in .travis.yml if possible, so I've moved them back there and made sure all the tests are still run correctly.

The js static tests have also been moved into their own job vs being mashed into the same job running phpunit static tests for the sake of travis test suite simplicity.

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

…avis

Regression was introduced in e68d69c; can't use a script that does not exit on command failure or exit code is always zero for anything but the last command the script ran. Additionally, moved the test script back into .travis.yml because test failure inside a .sh script will not include sufficient error output.
@davidalger davidalger self-assigned this Jun 7, 2017
@davidalger
Copy link
Member Author

Here is example static build where there were failures, but the test shows green: https://travis-ci.org/magento/magento2/jobs/239757912. This resolves that issue.

@okorshenko okorshenko self-assigned this Jun 8, 2017
@okorshenko okorshenko added this to the June 2017 milestone Jun 8, 2017
@vrann vrann requested a review from orlangur June 8, 2017 22:51
@magento-team magento-team merged commit 849717c into magento:develop Jun 9, 2017
magento-team pushed a commit that referenced this pull request Jun 9, 2017
@davidalger davidalger deleted the feature/fix-travis-tests branch July 3, 2017 16:35
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

3 participants