# No Rakefile found when adding travis to a github project

**URL:** <https://travis-ci.community/t/no-rakefile-found-when-adding-travis-to-a-github-project/3520>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [May 26, 2019, 5:12pm UTC](https://travis-ci.community/t/no-rakefile-found-when-adding-travis-to-a-github-project/3520 "2019-05-26T17:12:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkondrashov](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@tkondrashov](https://travis-ci.community/u/tkondrashov)\
**Post date:** [May 26, 2019, 5:12pm UTC](https://travis-ci.community/t/no-rakefile-found-when-adding-travis-to-a-github-project/3520/1 "2019-05-26T17:12:29Z")

</div>

I’m trying to add travis to my github project, and the build fails with:

```
$ rake
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
/home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
The command "rake" exited with 1.

```

This is the most confusing error I’ve seen in several years, since I don’t have ruby in my project at all. I figured out that it’s basically “generic travis error” but that doesn’t help me figure out what’s wrong. There’s an answer on S/O that says to check the name of my file, but it is correct, it’s in the right branch, the formatting looks fine to me, and I have absolutely no leads on what to do next.  
Here is my repository, this build is happening on the “develop” branch: [https://github.com/tkondrashov/thisminute](https://github.com/tkondrashov/thisminute)

Any help making this work would be very helpful, or any explanation of why travis doesn’t run checks to throw descriptive errors for things like whatever this is would at least make this less frustrating even if I have to find another CI tool.

---

<div class="post-metadata">

**Author:** ![tkondrashov](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@tkondrashov](https://travis-ci.community/u/tkondrashov)\
**Post date:** [May 26, 2019, 8:48pm UTC](https://travis-ci.community/t/no-rakefile-found-when-adding-travis-to-a-github-project/3520/2 "2019-05-26T20:48:12Z")

</div>

Ah, it means “no language specified”, I figured it out.

---

<div class="post-metadata">

**Author:** ![RDUlew](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@RDUlew](https://travis-ci.community/u/RDUlew)\
**Post date:** [July 17, 2019, 3:32pm UTC](https://travis-ci.community/t/no-rakefile-found-when-adding-travis-to-a-github-project/3520/3 "2019-07-17T15:32:04Z")

</div>

I am getting the exact same issue. You say you figured it out, but what is the solution? What means “no language specified?”

---

<div class="post-metadata">

**Author:** ![tkondrashov](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@tkondrashov](https://travis-ci.community/u/tkondrashov)\
**Post date:** [July 17, 2019, 4:18pm UTC](https://travis-ci.community/t/no-rakefile-found-when-adding-travis-to-a-github-project/3520/4 "2019-07-17T16:18:38Z")

</div>

You apparently have to have a language specified at the top of your .travis.yml file, for example I had to add  
language: node\_js

See: [https://docs.travis-ci.com/user/tutorial/#selecting-a-different-programming-language](https://docs.travis-ci.com/user/tutorial/#selecting-a-different-programming-language)

---

<div class="post-metadata">

**Author:** ![yharshal](https://avatars.discourse-cdn.com/v4/letter/y/8baadc/32.png) [@yharshal](https://travis-ci.community/u/yharshal)\
**Post date:** [December 13, 2019, 12:40pm UTC](https://travis-ci.community/t/no-rakefile-found-when-adding-travis-to-a-github-project/3520/5 "2019-12-13T12:40:18Z")

</div>

I have language mentioned in the travis.yml still it is throwing the same error…  
any help please!!!

---

<div class="post-metadata">

**Author:** ![kdubss](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@kdubss](https://travis-ci.community/u/kdubss)\
**Post date:** [January 24, 2020, 4:25pm UTC](https://travis-ci.community/t/no-rakefile-found-when-adding-travis-to-a-github-project/3520/6 "2020-01-24T16:25:00Z")

</div>

Same with me, and it’s becominfg quit frustrating…

I’m developing with Docker, so I’ve set `language: generic` at the top of the file, and then  
`docker run -e CI=true <image_tag> npm run test -- --coverage` for script…

---

<div class="post-metadata">

**Author:** ![aamirsaleemkudcs](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@aamirsaleemkudcs](https://travis-ci.community/u/aamirsaleemkudcs)\
**Post date:** [February 5, 2020, 3:21pm UTC](https://travis-ci.community/t/no-rakefile-found-when-adding-travis-to-a-github-project/3520/7 "2020-02-05T15:21:46Z")

</div>

Hi all,

I have a same error please can some one advise me…

$ rake  
rake aborted!  
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [February 5, 2020, 3:30pm UTC](https://travis-ci.community/t/no-rakefile-found-when-adding-travis-to-a-github-project/3520/8 "2020-02-05T15:30:52Z")

</div>

When reporting problems, please include relevant build URLs. Thanks.

---

<div class="post-metadata">

**Author:** ![EliasOPrado](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/eliasoprado/32/6509_2.png) [@EliasOPrado](https://travis-ci.community/u/EliasOPrado)\
**Post date:** [April 24, 2021, 3:50am UTC](https://travis-ci.community/t/no-rakefile-found-when-adding-travis-to-a-github-project/3520/9 "2021-04-24T03:50:34Z")

</div>

In my case I pushed the .travis.yml empty to github. In your build check the commit code, go to your github repository and check if you pushed the .travis.yml to it. You might forget to save it before you pushed.
