Skip to content

Do not use spinner in CI environment #3316

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

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

rosen-vladimirov
Copy link
Contributor

In case terminal is not interactive, the spinner we are using during tns doctor or tns platform add ... is printing a lot of messages and polutes the output.
So in case we are in non-interactive environment, print the spinner message a single time. In order to achieve this, use the newly introduce method in $progressIndicatior from submodule;

Add getSpinner method to $progressIndicator

Add getSpinner method to $progressIndicator - it will return a new instance of clui.Spinner in case terminal is interactive. In case it is not - a mocked instance will be returned.
This way in CI builds the spinner will not print tons of repeated messages.

Implements #2127

Merge after telerik/mobile-cli-lib#1040

Copy link
Contributor

@Mitko-Kerezov Mitko-Kerezov left a comment

Choose a reason for hiding this comment

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

LGTM

In case terminal is not interactive, the spinner we are using during `tns doctor` or `tns platform add ...` is printing a lot of messages and polutes the output.
So in case we are in non-interactive environment, print the spinner message a single time. In order to achieve this, use the newly introduce method in $progressIndicatior from submodule;

Add getSpinner method to $progressIndicator

Add `getSpinner` method to $progressIndicator - it will return a new instance of clui.Spinner in case terminal is interactive. In case it is not - a mocked instance will be returned.
This way in CI builds the spinner will not print tons of repeated messages.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/disable-spinners-in-ci branch from 22c030d to 26633bc Compare January 23, 2018 15:14
@rosen-vladimirov rosen-vladimirov merged commit 53de0ec into release Jan 23, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/disable-spinners-in-ci branch January 23, 2018 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants