Tôi đang cố gắng thiết lập tích hợp liên tục với codeship. Dự án của chúng tôi là một API Rails với một ứng dụng góc, hiện tại, nằm trong thư mục public
. Để làm việc, grunt cần tìm la bàn thực thi.Codeship để chạy grunt với la bàn
tôi sẽ nói rằng lệnh thiết lập nên là:
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
Và đường ống kiểm tra:
bundle exec rspec
cd public && grunt test
Tuy nhiên, có vẻ như codeship rằng không thích gem install compass
dòng và nó than phiền với:
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.
Và nó mang lại cho tôi gợi ý tôi không chắc chắn sẽ hiểu:
Please make sure the gem wasn't yanked from http://www.rubygems.org
Tuy nhiên, nếu tôi loại bỏ gem install compass
dòng và, thay vào đó, tôi thêm compass
để ứng dụng Rails của tôi Gemfile
, nó hoạt động. Nhưng tôi thực sự cảm thấy xấu xí và xấu về việc thêm la bàn vào Gemfile của tôi. Nó không có gì để làm với nó. Ứng dụng Rails của tôi là một API REST vì vậy nó không muốn biết bất cứ điều gì về la bàn, css hoặc bất cứ điều gì như thế.
Cảm ơn.
Bạn có tìm thấy bất kỳ giải pháp này? Tôi có cùng một vấn đề với codeship –
Không, nó không hoạt động, nhưng: ( –