Linux installation

The Linux OS has multiple different package managers, so how you install Ruby on your system is dependent on your particular Linux OS. We will look at installing Ruby and Travis CLI on Ubuntu 14.04 in a DigitalOcean server:

  1. To install Ruby on Ubuntu, run the following commands:
sudo apt-get install python-software-propertiessudo apt-add-repository ppa:brightbox/ruby-ngsudo apt-get updatesudo apt-get install ruby2.1 ruby-switchsudo ruby-switch --set ruby2.1
  1. Next, confirm that Ruby is installed by running the following command:

  1. Next we need to install the Travis CLI RubyGem with the following command:
gem install travis ...

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.