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.
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.
JVM (Clojure, Groovy, Java, Scala) VM images #
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).
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.)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With