_travis_terminate_MacOSX: command not found

In this build: https://travis-ci.com/github/mamba-org/minirhumba/jobs/382012943

I get

Done. Your build exited with 0.

/Users/travis/.travis/functions: line 521: _travis_terminate_MacOSX: command not found

When only:

Done. Your build exited with 0.

Was expected.

Not really sure what the problem might be since a really similar repository with very similar travis and sh files seems to run fine.

Any idea of what this error might be or even where I myself can look at the code and try to debug it? It’d be of great help since I didn’t find anything around the web.


*Not sure if it’s the right tag, sorry for that, couldn’t really find something that’d fit my problem better

Hey @marimeireles,

Couple examples how travis_terminate can be used, for example in a .travis.yml file I was making the other day it looked liked this:

travis_assert() {
  local result=${1:-$?}
  if [ $result -ne 0 ]; then
    echo -e "\n${ANSI_RED}The command \"$TRAVIS_CMD\" failed and exited with $result during $TRAVIS_STAGE.${ANSI_RESET}\n\nYour build has been stopped."
    travis_terminate 2

Another example would be:

travis_terminate() {
  set +e

Both of these resulted in non-issue. From briefly looking at your .travis.yml I don’t see anything wrong with it. I suggest you take a look at the following:

This will give you a better idea of the function of travis_terminate, and also I would suggest checking out this response by native-api, - and see with this information we can’t curb this issue!

I hope this helps, if none of this helps please post back and I’ll investigate further.

(Travis CI Staff)

Yeah, I found the issue I was overwriting the variable $TRAVIS_OS.
But thanks to your links it was super easy to debug, thanks a lot @Montana!
Closing this.

1 Like

Great to hear! If you need anymore help on anything please post back and I’ll be glad to help you.


1 Like