.travis.yml for docker build is error with rake aborted. how to solve

.travis.yml file

language: generic
sudo: required
services:

  • docker

before_install:

  • gem install bundler
  • docker build -t **\client -f Dockerfile.dev .

script:

  • docker run -e CI=true -t ***\client npm run test – --coverages
  1. 0.15s$ rake
  2. 188rake aborted!
  3. 189No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
  4. 190/home/travis/.rvm/gems/ruby-2.5.3@global/gems/rake-12.3.2/exe/rake:27:in `<top (required)>’
  5. 191/home/travis/.rvm/gems/ruby-2.5.3@global/bin/ruby_executable_hooks:24:in `eval’
  6. 192/home/travis/.rvm/gems/ruby-2.5.3@global/bin/ruby_executable_hooks:24:in `’
  7. 193(See full trace by running task with --trace)
  8. 194The command “rake” exited with 1.
  9. 195
  10. 196
  11. 197Done. Your build exited with 1.

Please link to a build instead of pasting partial stuff here – this might be insufficient for diagnostics.

But in your case, the error is pretty clear:
189No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb).

Imprint