我不明白为什么我的TravisCI构建在编译SASS文件时总是失败(节点0.10)。
我一直收到同样的错误:
Running "concurrent:test" (concurrent) task
Warning: Running "compass:dist" (compass) task
Warning: You need to have Ruby and Compass installed and in your system PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass Use --force to continue.
Aborted due to warnings.但是我已经安装了sass和grunt-contrib-sass,从我的.travis.yml中可以看到
language: node_js
before_install:
- gem install sass
node_js:
- '0.8'
- '0.10'
before_script:
- 'npm install -g bower grunt-cli karma'
- 'bower install'
script: grunt 和我的package.json (节选)
"grunt-bower-install": "~1.0.0",
"grunt-concurrent": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-compass": "~0.7.2",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-copy": "~0.4.1", 有人知道会发生什么吗?
链接到我的Travis构建:https://travis-ci.org/dmatteo/ng-bootstrap-pure/builds
附注:当然,我的地区grunt正在测试和构建完美的
发布于 2014-05-13 13:11:47
看起来仅仅安装sass是不够的,而compass是必需的。此外,我需要指定需要图形用户界面,这是在before_install的前两行中完成的
所以,这是工作的.travis.yml
language: node_js
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- gem install sass
- gem install compass
node_js:
- '0.10'
- '0.11'
before_script:
- 'npm install -g bower grunt-cli karma'
- 'bower install'
script: grunthttps://stackoverflow.com/questions/23613902
复制相似问题