tombh / peas

Docker and Ruby based PaaS
GNU General Public License v2.0
601 stars 33 forks source link

CLI specs running alongside other specs on Travis #2

Closed tombh closed 10 years ago

tombh commented 10 years ago

For the life of me I can't get the CLI specs to run alongside the normal API specs on Travis. In fairness the CLI folder does represent a completely separate code base with its own Gemfile. I guess the usual scenario is to put the CLI into a separate repo, but I want to avoid that, I like having just one centralised repo.

The error I keep getting is;

/home/travis/build/tombh/peas/cli/spec/spec_helper.rb:3:in `require': cannot load such file -- webmock/rspec (LoadError)
    from /home/travis/build/tombh/peas/cli/spec/spec_helper.rb:3:in `<top (required)>'
    from /home/travis/build/tombh/peas/cli/spec/cli_spec.rb:1:in `require'
    from /home/travis/build/tombh/peas/cli/spec/cli_spec.rb:1:in `<top (required)>'
    from /home/travis/build/tombh/peas/vendor/bundle/ruby/1.9.1/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `load'
    from /home/travis/build/tombh/peas/vendor/bundle/ruby/1.9.1/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
    from /home/travis/build/tombh/peas/vendor/bundle/ruby/1.9.1/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `each'
    from /home/travis/build/tombh/peas/vendor/bundle/ruby/1.9.1/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `load_spec_files'
    from /home/travis/build/tombh/peas/vendor/bundle/ruby/1.9.1/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:22:in `run'
    from /home/travis/build/tombh/peas/vendor/bundle/ruby/1.9.1/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:80:in `run'
    from /home/travis/build/tombh/peas/vendor/bundle/ruby/1.9.1/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in `block in autorun'
tombh commented 10 years ago

Fixed with https://github.com/tombh/peas/commit/46a38c07f96790ff60175fa2012f692b42e5206c