Cucumber on Travis CI container

I am trying to get Cucumber to run tests on my builds on Travis CI with following minimal .travis.yml:

language: ruby
sudo: required
services: docker
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq cucumber
script:
  - cucumber --version

But the build fails with

  • Restart postgres in a docker environment
  • Docker - Install CI Server on a remote host
  • How to remote debug python code in a Docker Container with VS Code
  • How can OpenAI Gym's visualizations work within Docker?
  • Docker: Unable to get the latest Boot2Docker ISO release version on initial setup behind corporate proxy
  • NFS server into a docker container
  • /usr/local/rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- cucumber/rspec/disable_option_parser (LoadError)
        from /usr/local/rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/bin/cucumber:10:in `<main>'
    

    Do I need to install other packages than cucumber?

  • How to set-up a docker registry acting as a Proxy?
  • InteliJ Idea: build and run Java apps in docker containers
  • Docker stuck on “Waiting for SSH to be available…”
  • How do a see the “ancestor tree” of a docker-compose file
  • Platform to test with docker containers in developer environment
  • Docker for Mac Beta: Unable to link containers properly
  • One Solution collect form web for “Cucumber on Travis CI container”

    It seems all the packages are being installed, the problem here I think is that sudo apt-get install -qq cucumber installed ruby 1.9.3 and then cucumber (check the log), calling cucumber tries to execute using ruby 2.2 (travis default)

    Maybe you should stick to using bundler or rake to install the cuke.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.