It turns out that every VM that runs your isolated test suite on Travis CI comes with Node.js and the previously installed Ruby . By default, you get Ruby 1.9.3 and Node.js 0.12.2 (but this can change as the Travis team updates its environment), so although you can only specify one language (e.g. language: Ruby ) in .travis.yml file, you can run both Ruby and Node.js programs on Travis CI VM.
I decided to go with the Node.js language setting and install the appropriate version of Ruby (but I could do the opposite with the same effect).
Here is my .travis.yml configuration file:
language: node_js node_js: - 0.12.2 addons: postgresql: "9.4" before_install: - rvm install 2.2.2 install:
source share