문제

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.

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top