Skip to content

Add a TB_DISABLE_INSIGHTS env variable to disable the insights uploading step#80

Open
ndbroadbent wants to merge 1 commit into
renderedtext:masterfrom
DocSpring:TB_DISABLE_INSIGHTS
Open

Add a TB_DISABLE_INSIGHTS env variable to disable the insights uploading step#80
ndbroadbent wants to merge 1 commit into
renderedtext:masterfrom
DocSpring:TB_DISABLE_INSIGHTS

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Mar 16, 2021

Copy link
Copy Markdown
Contributor

I've added a TB_DISABLE_INSIGHTS env variable that users can set to disable the "analytics" step. (I use this gem on GitLab CI instead of Semaphore.) This is related to #66 and #74


def upload(booster_type, file)
return unless File.exist?(file)
return if ENV['TB_DISABLE_INSIGHTS'] || !File.exist?(file)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We might want to add a spec for that one !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants