The first prerequisite to install Travis CLI is to have Ruby (https://www.ruby-lang.org/en/documentation/installation/) installed on your OS and make sure that it is version 1.9.3 or greater.
You can check that you have Ruby installed by running the following command in a command shell or Terminal: