# API builds are incorrectly using Ruby even though other languages are specified

**URL:** <https://travis-ci.community/t/api-builds-are-incorrectly-using-ruby-even-though-other-languages-are-specified/2747>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** bug\
**Created:** [March 21, 2019, 3:59pm UTC](https://travis-ci.community/t/api-builds-are-incorrectly-using-ruby-even-though-other-languages-are-specified/2747 "2019-03-21T15:59:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![blademainer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/blademainer/32/1416_2.png) [@blademainer](https://travis-ci.community/u/blademainer)\
**Post date:** [March 21, 2019, 3:59pm UTC](https://travis-ci.community/t/api-builds-are-incorrectly-using-ruby-even-though-other-languages-are-specified/2747/1 "2019-03-21T15:59:37Z")

</div>

My job failed since 3 hours ago, and failed with:

> 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.

see job: [Travis CI - Test and Deploy with Confidence](https://travis-ci.org/blademainer/google_containers_mirror/builds/509422239)

---

<div class="post-metadata">

**Author:** ![blademainer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/blademainer/32/1416_2.png) [@blademainer](https://travis-ci.community/u/blademainer)\
**Post date:** [March 21, 2019, 4:03pm UTC](https://travis-ci.community/t/api-builds-are-incorrectly-using-ruby-even-though-other-languages-are-specified/2747/2 "2019-03-21T16:03:33Z")

</div>

It’s looks like a language detect bug?

Succeed job’s language is: Shell

 ![image](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/7/756e318412a6d8e9e2ec4068adedfd977ba62ba6.png)

---

<div class="post-metadata">

**Author:** ![blademainer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/blademainer/32/1416_2.png) [@blademainer](https://travis-ci.community/u/blademainer)\
**Post date:** [March 21, 2019, 4:09pm UTC](https://travis-ci.community/t/api-builds-are-incorrectly-using-ruby-even-though-other-languages-are-specified/2747/3 "2019-03-21T16:09:14Z")

</div>

And failed job’s language is: Ruby

 ![image](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/a/ada4eaac2e8f111edd81a69775f292f779ce3519.png)

---

<div class="post-metadata">

**Author:** ![dhylands](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dhylands/32/1419_2.png) [@dhylands](https://travis-ci.community/u/dhylands)\
**Post date:** [March 21, 2019, 4:15pm UTC](https://travis-ci.community/t/api-builds-are-incorrectly-using-ruby-even-though-other-languages-are-specified/2747/4 "2019-03-21T16:15:40Z")

</div>

I’m running into the same issue: [https://travis-ci.org/mozilla-iot/addon-builder/builds/509506969](https://travis-ci.org/mozilla-iot/addon-builder/builds/509506969) (language incorrectly detected as Ruby)

It was working fine yesterday: [https://travis-ci.org/mozilla-iot/addon-builder/jobs/509116301](https://travis-ci.org/mozilla-iot/addon-builder/jobs/509116301) (language correctly detected as node\_js)

---

<div class="post-metadata">

**Author:** ![dhylands](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dhylands/32/1419_2.png) [@dhylands](https://travis-ci.community/u/dhylands)\
**Post date:** [March 21, 2019, 4:35pm UTC](https://travis-ci.community/t/api-builds-are-incorrectly-using-ruby-even-though-other-languages-are-specified/2747/5 "2019-03-21T16:35:15Z")

</div>

I ran travis lint on my local machine and it reported:

```
[x] in os section: dropping osx, does not support node_js

```

Removing osx from from my .travis.yml file allowed it to run. It seems that if there are any parsing errors in the .travis.yml file that it reverts to ruby. See: [https://github.com/travis-ci/travis-ci/issues/9150](https://github.com/travis-ci/travis-ci/issues/9150)

So it looks like travis dropped support for osx? or node\_js under osx\>

I tried travis lint on your .travis.yml and it looks valid, so I’m not sure what the issue is there.

---

<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:** [March 21, 2019, 5:09pm UTC](https://travis-ci.community/t/api-builds-are-incorrectly-using-ruby-even-though-other-languages-are-specified/2747/6 "2019-03-21T17:09:18Z")

</div>

Hello, there.

API builds are incorrectly configured to use Ruby. We are working on a fix now.

Thanks for the reports and your patience.

---

<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:** [March 21, 2019, 5:11pm UTC](https://travis-ci.community/t/api-builds-are-incorrectly-using-ruby-even-though-other-languages-are-specified/2747/7 "2019-03-21T17:11:35Z")

</div>

The issue should be fixed now. Unfortunately, the affected builds will not be reconfigured. If you are seeing this issue, please trigger new builds.

Thanks.

---

<div class="post-metadata">

**Author:** ![blademainer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/blademainer/32/1416_2.png) [@blademainer](https://travis-ci.community/u/blademainer)\
**Post date:** [March 21, 2019, 5:21pm UTC](https://travis-ci.community/t/api-builds-are-incorrectly-using-ruby-even-though-other-languages-are-specified/2747/8 "2019-03-21T17:21:18Z")

</div>

@BanzaiMan@dhylands OK. Thank you all.
