Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to use ruby in a node environment on Travis CI?

I'm stuck with a problem. I have to test a certain task that compiles .scss files into .css in my Travis CI. To do this, I need ruby and sass installed in my environment. But since I'm developing a node.js app and I'm using a node setup, I don't know how I can include ruby in my Travis environment.

Here's my very simple travis.yml

language: node_js
node_js:
  - "0.11"
  - "0.10"
script:
  'mocha test/test.js'

Thanks in advance.

like image 872
Bernardo Avatar asked Feb 13 '14 13:02

Bernardo


People also ask

Is NodeJS faster than Ruby?

Node. js is faster than Ruby in many cases due to its JavaScript engine, even though it has some issues. Ruby is easy to learn as it has numerous tutorials and courses are there for learning in online. It has the most active developer community by which we can learn easily if we stuck anywhere while learning.

Which of the following networking tools are supported by Travis CI?

JVM (Clojure, Groovy, Java, Scala) VM images #

What is Ruby node?

Node is a wrapper for Ruby's Nodes, which are not objects. Nodes can be obtained from many of the other methods in the nodewrap library (see Method#body and Proc#body, for example).

What is Travis_commit?

TRAVIS_COMMIT : The commit that the current build is testing. TRAVIS_COMMIT_MESSAGE : The commit subject and body, unwrapped. TRAVIS_COMMIT_RANGE : The range of commits that were included in the push or pull request. (Note that this is empty for builds triggered by the initial commit of a new branch.)


1 Answers

Apparently all environments have ruby installed, so I just need to install the sass gem.

Add the following inside my .travis.yml file worked.

before_install: gem install sass
like image 120
Bernardo Avatar answered Oct 05 '22 09:10

Bernardo