I am trying to configure continuous integration with codes. Our project is a Rails API with an angular application, which is still in the public directory. To work, you need to grunt to find the compass executable.
I would say that the configuration commands should be:
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
And the test pipeline:
bundle exec rspec cd public && grunt test
However, the code does not look like the gem install compass , and it complains:
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.
And that gives me a clue that I'm not sure about understanding:
Please make sure the gem wasn't yanked from http:
However, if I remove the gem install compass and instead add compass to my Rails Gemfile application, it works. But I really feel ugly and bad when adding a compass to my gemfile. This has nothing to do with it. My Rails is a REST API, so it doesnβt want to know anything about compass, css or something like that.
Thanks.
source share