Skip to content

Commit

Permalink
Add smoke test for dogfooding automation
Browse files Browse the repository at this point in the history
  • Loading branch information
ncreated committed May 29, 2024
1 parent 873ba7a commit bf157a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,17 @@ workflows:
set -e
cd tools/distribution && make
venv/bin/python3 -m pytest tests
- script:
title: Smoke test dogfooding (with dry-run)
run_if: '{{enveq "DD_RUN_TOOLS_TESTS" "1"}}'
inputs:
- content: |-
#!/usr/bin/env bash
set -e
export DD_DRY_RUN=yes
cd tools/distribution && make
venv/bin/python3 dogfood.py
- script:
title: Run tests for nightly-unit-tests tool
run_if: '{{enveq "DD_RUN_TOOLS_TESTS" "1"}}'
Expand Down
2 changes: 2 additions & 0 deletions tools/distribution/dogfood.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def dogfood(dry_run: bool, repository_url: str, repository_name: str, repository

try:
dry_run = os.environ.get('DD_DRY_RUN') == 'yes'
if dry_run:
print(f'ℹ️ Running in dry-run mode')
skip_datadog_ios = os.environ.get('DD_SKIP_DATADOG_IOS') == 'yes'
skip_shopist_ios = os.environ.get('DD_SKIP_SHOPIST_IOS') == 'yes'

Expand Down

0 comments on commit bf157a1

Please sign in to comment.