DockerCasts icon indicating copy to clipboard operation
DockerCasts copied to clipboard

Ch 7: "No Gemfile found skipping bundle install" and other errors

Open charlytron opened this issue 5 years ago • 4 comments

Thank-you for teaching this course, Stephen (and for what I've learned so far).

The feedback from travis-ci was a bit of a surprise, failing the .yaml file we provided. The job log did indicate tests passing locally.

I can't imagine we pushed a flawed .yaml, but does build config validation show that new conditions were added to travis since you published ch. 7?

root: deprecated key sudo (The key sudo has no effect anymore.)"

root: missing os, using the default linux

root: missing language, using the default ruby

It would be useful to know why the job log shows that Ruby is not finding the gemfile. Thanks again.

charlytron avatar Feb 21 '20 21:02 charlytron

Yeah, I got the gemfile error, too. Add this to your .travis.yml: language: generic

=== I got the idea from: https://medium.com/@desfocado/how-to-get-travis-to-work-with-no-build-language-9f4c03ed68b1

=== Full disclosure, my full project isn't running yet. But I did get past the gemfile.

gnakatani avatar Feb 02 '21 18:02 gnakatani

Today i am also facing the same issue. Travis CI is not able build for me "no gemfile found skipping bundle install"

gauravdhim1990 avatar Mar 21 '22 13:03 gauravdhim1990

I tried to run adding the below line and but it still did not worked language: generic

gauravdhim1990 avatar Mar 21 '22 17:03 gauravdhim1990

use this below and it's run successfully

script:

  • docker run -e CI=true USERNAME/docker-react npm run test

language: generic

gauravdhim1990 avatar Mar 22 '22 06:03 gauravdhim1990