-
Notifications
You must be signed in to change notification settings - Fork 723
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
after_failure script not run if script errors #8038
Comments
Looks like the build script is bailing out early, without a chance for |
I'm now working around this issue by using a |
@BanzaiMan I am seeing this issue as well. In my script section I include a call to |
Is there any update on this issue? |
Sorry, but I have no updates. |
@BanzaiMan Is there a different way to signal failure that would still execute the |
At the moment there is not, I'm afraid. |
I was a bit confounded about an issue with the same behaviour. Until I read the comment by @chris-ratcliffe. Forgot about some scripts sourced into the build shell, which It would be useful to mention in the docs, not only about error-on-exit but also advising against using exit and prefer to return. There is an issue on that, maybe if Ihave some time later. travis-ci/docs-travis-ci-com#1672 |
@craigcitro @hadley @jimhester I have the following in my .travis.yml file for an R package at https://github.com/waldronlab/curatedMetagenomicDataCuration. The .push_gh_pages.sh script runs after a successful package check, but not after a package check where the unit tests produce any error. I've left the package intentionally in an erroring state because I want
./push_gh_pages.sh
to run even if the unit tests fail (actually, especially if the unit tests fail, because the vignette is designed to help identify the reason for failure).The text was updated successfully, but these errors were encountered: