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

Update CI to fail if exit code is non zero #1043

Merged
merged 12 commits into from
Jul 2, 2021
Merged

Conversation

akankshakumari393
Copy link
Contributor

@akankshakumari393 akankshakumari393 commented Jul 1, 2021

Change Overview

Travis CI passes even if the exit code is non-zero for a script. For example CI job that should fail but has success status. This PR is to set an -e flag to the script which would eventually exit if the script fails with non-zero exit code.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • #XXX

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

For testing
we made changes so that the script fails with non-zero exit code and has -e set to exit on error. link to the build that fails with error

@akankshakumari393 akankshakumari393 changed the title Travis Ci exit on failure of script Update CI to fail if exit code is non zero Jul 2, 2021
@akankshakumari393 akankshakumari393 marked this pull request as ready for review July 2, 2021 04:58
@mergify mergify bot merged commit aaa330e into master Jul 2, 2021
@mergify mergify bot deleted the ci_exit_on_failure branch July 2, 2021 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants