# Build config file required... config is empty. Help

**URL:** <https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [January 14, 2019, 11:30pm UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844 "2019-01-14T23:30:07Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiwiFudge](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kiwifudge/32/969_2.png) [@kiwiFudge](https://travis-ci.community/u/kiwiFudge)\
**Post date:** [January 14, 2019, 11:30pm UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/1 "2019-01-14T23:30:08Z")

</div>

I have a private GitHub repo and Codename One project that I’m trying to get Travis CI Pro working with.

I’ve added the Travis config files that are automatically generated with Codename One, I’ve given Travis complete access to the repo on GitHub, and I’ve added the repo to Travis, but there is no toggle next to it where all the instructions keep telling me to turn on to select it.

In the repo under the Current tab it says that there are no builds for this repository. Under the Branches tab it says no other branches for this repository, even though there are two branches in GitHub.

If I go to More options \> Requests it shows all the commits, but they’re all failed as job rejected. The error is "Build config file is required via repository settings, but config is empty. My GitHub has the .travis.yml file.

Any help would be much appreciated, thanks.

edit: I should mention I’m using eclipse oxygen and a Travis Education account

---

<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:** [January 14, 2019, 11:58pm UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/2 "2019-01-14T23:58:56Z")

</div>

Sounds like your `.travis.yml` is invalid (probably some syntax error). Use validators such as [https://yaml-online-parser.appspot.com](https://yaml-online-parser.appspot.com) to review it, please.

---

<div class="post-metadata">

**Author:** ![kiwiFudge](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kiwifudge/32/969_2.png) [@kiwiFudge](https://travis-ci.community/u/kiwiFudge)\
**Post date:** [January 15, 2019, 12:03am UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/3 "2019-01-15T00:03:59Z")

</div>

I copied my .travis.yml file into the suggested link. The output is:

```auto
{
  "matrix": {
    "include": [
      {
        "before_script": [
          "export DISPLAY=:99.0", 
          "sh -e /etc/init.d/xvfb start"
        ], 
        "language": "java", 
        "env": "CN1_PLATFORM=javase CN1_RUNTESTS_JAVASE=1", 
        "jdk": "oraclejdk8"
      }
    ]
  }, 
  "env": {
    "global": null
  }, 
  "script": [
    "bash .travis/build.sh;"
  ]
}

```

---

<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:** [January 15, 2019, 12:05am UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/4 "2019-01-15T00:05:39Z")

</div>

Interesting. Please include the requests page’s URL where you see the requests rejected. Thanks.

---

<div class="post-metadata">

**Author:** ![kiwiFudge](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kiwifudge/32/969_2.png) [@kiwiFudge](https://travis-ci.community/u/kiwiFudge)\
**Post date:** [January 15, 2019, 12:11am UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/5 "2019-01-15T00:11:06Z")

</div>

[https://travis-ci.com/kiwiFudge/GDG-v1.0/requests](https://travis-ci.com/kiwiFudge/GDG-v1.0/requests)

Thank you for looking into this for me 🙂

---

<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:** [January 15, 2019, 12:25am UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/6 "2019-01-15T00:25:34Z")

</div>

Hmmm. Do you have a file named `.travis.yml` in the repository root? (The repo is private, so I cannot confirm it.)

---

<div class="post-metadata">

**Author:** ![kiwiFudge](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kiwifudge/32/969_2.png) [@kiwiFudge](https://travis-ci.community/u/kiwiFudge)\
**Post date:** [January 15, 2019, 12:29am UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/7 "2019-01-15T00:29:28Z")

</div>

The .travis.yml file is in the root directory of the repo, yes.

Sorry, I cannot make this repository public. I’m happy to provide the information you need as we work through this problem if I am able however.

---

<div class="post-metadata">

**Author:** ![kiwiFudge](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kiwifudge/32/969_2.png) [@kiwiFudge](https://travis-ci.community/u/kiwiFudge)\
**Post date:** [January 15, 2019, 1:51am UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/8 "2019-01-15T01:51:34Z")

</div>

This is what my Travis repository page looks like:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/1X/bb5f4aaa46a96c2b214b3879e1d5f647c9e93806.png)

From everything I’ve seen online there is suppose to be a toggle for a repo to recognise any changes, but it’s not displayed for mine. Any way to fix this issue?

---

<div class="post-metadata">

**Author:** ![kiwiFudge](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kiwifudge/32/969_2.png) [@kiwiFudge](https://travis-ci.community/u/kiwiFudge)\
**Post date:** [January 21, 2019, 10:47pm UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/9 "2019-01-21T22:47:22Z")

</div>

Still unresolved issue. Any more insight?

---

<div class="post-metadata">

**Author:** ![kris](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kris/32/13_2.png) [@kris](https://travis-ci.community/u/kris)\
**Post date:** [January 22, 2019, 2:13pm UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/10 "2019-01-22T14:13:47Z")

</div>

Hey there,

Is there any chance you could upload (or copy-paste) the full .yml file here? If not, I’d suggest you’d email our support team so they can assist you privately. 😄 [support@travis-ci.com](mailto:support@travis-ci.com)

Generally, this error is when the file isn’t quite parsed correctly, and it can be very specific with formatting.

---

<div class="post-metadata">

**Author:** ![kiwiFudge](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kiwifudge/32/969_2.png) [@kiwiFudge](https://travis-ci.community/u/kiwiFudge)\
**Post date:** [January 22, 2019, 6:39pm UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/11 "2019-01-22T18:39:41Z")

</div>

Can’t upload the file to this thread, but [here’s the link](https://drive.google.com/file/d/1FBsmrV23xteOvNIDuACaSiigJbk8Wk-f/view?usp=sharing) for a google drive upload of the `.travis.yml` file. This is the default file that Codename One installs.

Side note: the file downloads without the leading dot.

---

<div class="post-metadata">

**Author:** ![kris](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kris/32/13_2.png) [@kris](https://travis-ci.community/u/kris)\
**Post date:** [January 23, 2019, 8:42am UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/12 "2019-01-23T08:42:49Z")

</div>

Thanks!

I tried it in one of my test repos and it worked just fine. 😕 Looks like there’s definitely something odd happening there.

As it’s for a private repo, I’d say it’s best to bring it up to [support@travis-ci.com](mailto:support@travis-ci.com) so our support team can assist you with it better. All the best and happy building!

---

<div class="post-metadata">

**Author:** ![kiwiFudge](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kiwifudge/32/969_2.png) [@kiwiFudge](https://travis-ci.community/u/kiwiFudge)\
**Post date:** [January 25, 2019, 3:40am UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/13 "2019-01-25T03:40:07Z")

</div>

Thanks for looking at it.

Just as a side question, I don’t suppose you would know much about Codename One (I might ask CN1 as well), but does the build.xml need to remain unchanged for Travis to recognise the project?

---

<div class="post-metadata">

**Author:** ![kris](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kris/32/13_2.png) [@kris](https://travis-ci.community/u/kris)\
**Post date:** [January 25, 2019, 9:22am UTC](https://travis-ci.community/t/build-config-file-required-config-is-empty-help/1844/14 "2019-01-25T09:22:33Z")

</div>

Hm, no, I don’t see how that would affect things on our end, but I can’t say I’m too familiar with Codename One, no. Sorry!
