Wai*_*... 5 gruntjs codeship compass
我正在尝试与codeship建立持续集成.我们的项目是带有角度应用程序的Rails API,目前,它位于public目录中.为了工作,grunt需要找到罗盘可执行文件.
我会说setup命令应该是:
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
Run Code Online (Sandbox Code Playgroud)
并测试管道:
bundle exec rspec
cd public && grunt test
Run Code Online (Sandbox Code Playgroud)
然而,似乎代码gem install compass行不喜欢行,它抱怨:
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.
Run Code Online (Sandbox Code Playgroud)
它给了我一个我不确定理解的提示:
Please make sure the gem wasn't yanked from http://www.rubygems.org
Run Code Online (Sandbox Code Playgroud)
但是,如果我删除gem install compass行,而是添加compass到我的Rails应用程序Gemfile,它可以工作.但是我真的觉得为我的Gemfile添加指南针很难看.它与它无关.我的Rails应用程序是一个REST API,所以它不想知道任何关于指南针,CSS或类似的东西.
谢谢.
| 归档时间: |
|
| 查看次数: |
303 次 |
| 最近记录: |