# Build config validation causes stage names to become uncapitalized

**URL:** <https://travis-ci.community/t/build-config-validation-causes-stage-names-to-become-uncapitalized/8332>\
**Category:** Build Config Validation\
**Tags:** web-ui, bug, config-validation\
**Created:** [April 23, 2020, 8:07pm UTC](https://travis-ci.community/t/build-config-validation-causes-stage-names-to-become-uncapitalized/8332 "2020-04-23T20:07:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjollos](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/rjollos/32/5870_2.png) [@rjollos](https://travis-ci.community/u/rjollos)\
**Post date:** [April 23, 2020, 8:07pm UTC](https://travis-ci.community/t/build-config-validation-causes-stage-names-to-become-uncapitalized/8332/1 "2020-04-23T20:07:59Z")

</div>

I’ve encountered the same thing. Even more strange, “Test” and “Deploy” are capitalized for my project’s main repository, but not for my fork:

- Fork: [https://travis-ci.org/github/rjollos/trac/builds/678438878](https://travis-ci.org/github/rjollos/trac/builds/678438878)
- Main: [https://travis-ci.org/github/edgewall/trac/builds/676912300](https://travis-ci.org/github/edgewall/trac/builds/676912300)

The true value of the variable ("Test or “test”) is shown right on the status page. Here it is for my fork:

![Screen Shot 2020-04-23 at 13.03.41](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/9/9485ba0a7016d47ce49e684131f3f57433171029.jpeg)

And for the main repo you can see it is capitalized (I’m not allowed to post 2 images here, so I can screen capture and upload).

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [April 24, 2020, 10:07am UTC](https://travis-ci.community/t/build-config-validation-causes-stage-names-to-become-uncapitalized/8332/2 "2020-04-24T10:07:10Z")

</div>

I believe [the documentation](https://docs.travis-ci.com/user/build-stages/#naming-your-build-stages) is saying that it’s only capitalized when displayed in the UI, and the raw value should be in small letters. Since the stated purpose of this feature is: _“so you don’t have to deal with uppercase strings in your `.travis.yml` file”._

So they actually fixed a bug rather than introduced it.

An inconsistent display reported by @rjollos, however, is a genuine UI bug.

* * *

@rjollos, I see that your fork has Build Config Validation enabled while the base project doesn’t. This may be what’s making the difference. Could you disable it and see if that changes things?

---

<div class="post-metadata">

**Author:** ![rjollos](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/rjollos/32/5870_2.png) [@rjollos](https://travis-ci.community/u/rjollos)\
**Post date:** [April 24, 2020, 4:21pm UTC](https://travis-ci.community/t/build-config-validation-causes-stage-names-to-become-uncapitalized/8332/3 "2020-04-24T16:21:10Z")

</div>

> [@native-api](#):
>
> @rjollos, I see that your fork has Build Config Validation enabled while the base project doesn’t. This may be what’s making the difference. Could you disable it and see if that changes things?

Yes, it looks like you are correct. With Build Config Validation enabled I get “test”. With it disabled I get “Test”.

---

<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:** [April 24, 2020, 7:37pm UTC](https://travis-ci.community/t/build-config-validation-causes-stage-names-to-become-uncapitalized/8332/4 "2020-04-24T19:37:40Z")

</div>

Duplicate of [TRAVIS\_BUILD\_STAGE\_NAME isn't capitalized](https://travis-ci.community/t/travis-build-stage-name-isnt-capitalized/8220).
