Skip to content

Commit

Permalink
Fix sentry option
Browse files Browse the repository at this point in the history
  • Loading branch information
jellespijker committed Feb 17, 2024
1 parent 71d372c commit b7d7d4f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions recipes/clipper/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,9 @@ def build(self):
cmake.configure(build_script_folder=os.path.join(self.source_folder, "cpp"))
cmake.build()

if self.options.enable_sentry:
# Upload debug symbols to sentry
sentry_project = self.conf.get("user.curaengine:sentry_project", "", check_type=str)
sentry_org = self.conf.get("user.curaengine:sentry_org", "", check_type=str)
if sentry_project == "" or sentry_org == "":
raise ConanInvalidConfiguration("sentry_project or sentry_org is not set")

sentry_project = self.conf.get("user.curaengine:sentry_project", "", check_type=str)
sentry_org = self.conf.get("user.curaengine:sentry_org", "", check_type=str)
if self.options.enable_sentry and os.environ.get('SENTRY_TOKEN', None) and sentry_project != "" and sentry_org != "":
if which("sentry-cli") is None:
self.output.warn("sentry-cli is not installed, skipping uploading debug symbols")
else:
Expand Down

0 comments on commit b7d7d4f

Please sign in to comment.