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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ndbroadbent
Copy link
Contributor

@ndbroadbent ndbroadbent commented Mar 16, 2021

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

@@ -3,7 +3,7 @@ module InsightsUploader
module_function

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

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