Gruntjs 用指南针发出呼噜声

Gruntjs 用指南针发出呼噜声,gruntjs,compass,codeship,Gruntjs,Compass,Codeship,我正在尝试与codeship建立持续集成。我们的项目是一个带有angular应用程序的Rails API,目前它位于public目录中。为了工作,grunt需要找到compass可执行文件 我认为安装命令应该是: rvm use 2.1.3 --install bundle install export RAILS_ENV=test bundle exec rake db:schema:load bundle exec rake db:migrate bundle exec rake db:te

我正在尝试与codeship建立持续集成。我们的项目是一个带有angular应用程序的Rails API,目前它位于
public
目录中。为了工作,grunt需要找到compass可执行文件

我认为安装命令应该是:

rvm use 2.1.3 --install
bundle install
export RAILS_ENV=test
bundle exec rake db:schema:load
bundle exec rake db:migrate
bundle exec rake db:test:prepare
# We need compass in frontend
gem install compass
nvm install 0.10.25
nvm use 0.10.25
npm install
npm install -g grunt-cli
测试管道:

bundle exec rspec
cd public && grunt test
然而,codeship似乎不喜欢
gem install compass
line,它抱怨:

Running "concurrent:test" (concurrent) task Warning: /home/rof/.rvm/gems/ruby-2.1.3/gems/bundler-1.9.4/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find rake-10.4.2 in any of the sources

(Bundler::GemNotFound) from /home/rof/.rvm/gems/ruby-2.1.3/gems/bundler-1.9.4/lib/bundler/spec_set.rb:85:in `map!'
from /home/rof/.rvm/gems/ruby-2.1.3/gems/bundler-1.9.4/lib/bundler/spec_set.rb:85:in `materialize'
from /home/rof/.rvm/gems/ruby-2.1.3/gems/bundler-1.9.4/lib/bundler/definition.rb:132:in `specs' from /home/rof/.rvm/gems/ruby-2.1.3/gems/bundler-1.9.4/lib/bundler/definition.rb:177:in `specs_for' from /home/rof/.rvm/gems/ruby-2.1.3/gems/bundler-1.9.4/lib/bundler/runtime.rb:13:in `setup'
from /home/rof/.rvm/gems/ruby-2.1.3/gems/bundler-1.9.4/lib/bundler.rb:129:in `setup' from /home/rof/.rvm/gems/ruby-2.1.3/gems/bundler-1.9.4/lib/bundler.rb:134:in `require'
from /home/rof/.rvm/gems/ruby-2.1.3/gems/compass-1.0.3/bin/compass:26:in `<top (required)>'
from /home/rof/.rvm/gems/ruby-2.1.3/bin/compass:23:in `load'
from /home/rof/.rvm/gems/ruby-2.1.3/bin/compass:23:in `<main>'
from /home/rof/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `eval'
from /home/rof/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `<main>'
Use --force to continue.
但是,如果我删除
gem install compass
行,而是将
compass
添加到我的Rails应用程序
Gemfile
,它就会工作。但我真的觉得把指南针添加到我的文件中很难看很糟糕。这与此无关。我的Rails应用程序是一个RESTAPI,所以它不想知道任何有关compass、css或类似的东西


谢谢。

我今天遇到了同样的问题,我就是这样解决的:

我在项目设置>测试中编辑了设置命令。 这样,您可以在运行grunt任务之前运行命令
gem install compass

这就是它的样子:


我希望这也适用于您

您找到解决方案了吗?我对codeshipNo也有同样的问题,它不起作用,但:(谢谢你的回答…但我已经把它作为安装命令使用了,但没有成功。。。
Please make sure the gem wasn't yanked from http://www.rubygems.org