question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Colour support on TravisCI

See original GitHub issue

I’m currently working on a package where I’m planning on switching to chalk and up to now TravisCI didn’t have any problems with colours on the console (using colors) but after pushing some code with passing tests (on the chalk-based codebase), Travis seems to disable colours which make all the tests fail.

I’ve understood from this comment that TravisCI seems to non-determistically change supports-color but I’m unsure if there’s a fix for that or if I have to manually enable it using chalk.enable = true or even set the chalk.level to something other than 0 (which is what I get on the TravisCI log).

EDIT: if (!chalk.enabled) chalk.enabled = true; doesn’t help.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:24 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
sindresorhuscommented, Jul 12, 2019

@Berkmann18 Try posting here instead: https://travis-ci.community/

1reaction
Berkmann18commented, Feb 22, 2019

I’ve emailed them again as I’ve received no response other than the above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Colors in console does not work - Travis CI Community
I am printing an images in terminal with node script and package chalk , but colors is wrong! Same script works perfectly in...
Read more >
Home – Travis-CI
With Travis CI, you never have to choose between speed, quality or cost: · Auto-deployment on passing builds · Pull request support. ·...
Read more >
Travis CI - Test and Deploy Your Code with Confidence
Travis CI enables your team to test and ship your apps with confidence. Easily sync your projects with Travis CI and you'll be...
Read more >
Travis CI icon in Color Style - Icons8
Find other icons related to Travis CI vector icon. These icons have matching tags. Discover all logos icons to find more icons of...
Read more >
TravisCI - Open SDG - Read the Docs
TravisCI. TravisCI is a "continuous integration" (CI) cloud service. It is useful for Open SDG in a way that is typical of open-source...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found