Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular/cli): check for CI environment variable in tty helper #14572

Merged
merged 1 commit into from
May 30, 2019

Conversation

clydin
Copy link
Member

@clydin clydin commented May 29, 2019

Covers common CI platforms.

Fixes #14563

@clydin clydin added the target: patch This PR is targeted for the next patch release label May 29, 2019
@clydin clydin requested a review from alan-agius4 May 30, 2019 00:19
@@ -11,5 +11,5 @@ export function isTTY(): boolean {
return !(force === '0' || force.toUpperCase() === 'FALSE');
}

return !!process.stdout.isTTY && !!process.stdin.isTTY;
return !!process.stdout.isTTY && !!process.stdin.isTTY && !('CI' in process.env);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how common it is for people to set CI=false/CI=0 on their non-CI envs 😆

@mgechev mgechev merged commit 410b56e into angular:master May 30, 2019
@clydin clydin deleted the tty-ci branch May 30, 2019 16:03
@alexeagle
Copy link
Contributor

In case it's useful, we use https://github.com/mattn/go-isatty in the ts_devserver

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The analytics prompt shouldn't run in CI environments
6 participants