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

  • Docker Ubuntu Behind Proxy
  • Permissions issue with shared host drive mounted to two docker containers
  • Docker Compose Containers with specific hostpath on nginx
  • Parameters to pass to docker run automatically on startup
  • Packer provisioning docker with chef-solo gets node name not found error
  • docker + apt-add-repository: 'ascii' codec can't decode byte
  • /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?

  • Sharing data across containers
  • how to reconnect to a docker container
  • getting to the files system of the Alpine linux which runs Docker-for-mac
  • Configure portainer with Minikube's docker
  • How to have login and access settings with a docker image registry
  • How to debug Symfony command using Xdebug and phpStorm?
  • 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.