The release of bundler 2.0 breaks travis-ci tests

Open
#456 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
ruby
Domain
ci-cd

Research direction

Start with .travis.yml and the reported Travis CI job log, focusing on the bundle install command and the before_install section. Ensure the Travis build installs a Bundler version compatible with the Ruby 2.1.9 environment, then rerun the CI build and confirm bundle install and the test script complete successfully.

Written by the indexing model from the issue text.

Description

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4
  • Ruby: 2.1.9
  • Distribution: ubuntu trusty (as provided by travis-ci)
  • Module version: master, probably any version

How to reproduce (e.g Puppet code you use)

Run any travis-ci build.

What are you seeing

travis-ci failes with an error, which is different from a normal build failiure.

Output log

https://travis-ci.org/voxpupuli/puppet-python/jobs/474908824

The program 'bundle' is currently not installed. To run 'bundle' please ask your administrator to install the package 'bundler'```

## Workaround
`diff --git a/.travis.yml b/.travis.yml
index 06169e3..e20c74e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,8 @@ language: ruby
 cache: bundler
 before_install:
   - rm -f Gemfile.lock
+  - gem install bundler -v '< 2' --conservative
+
 script:
   - 'bundle exec rake $CHECK'
 matrix:
`

## More Information
https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html
Dominant language
Ruby
Stars
196
Forks
372
Avg merge
1d 18m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from voxpupuli/puppet-python

All issues in voxpupuli/puppet-python

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.