docs: explicitly set CI=true in Azure DevOps pipeline (#24278)

Fixes https://github.com/microsoft/playwright/issues/24274

---------

Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Andrey Lushnikov 2023-07-18 09:39:14 -07:00 committed by GitHub
parent d0280ec8c7
commit 0b2516d71a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -500,6 +500,8 @@ steps:
displayName: 'Install Playwright browsers' displayName: 'Install Playwright browsers'
- script: npx playwright test - script: npx playwright test
displayName: 'Run Playwright tests' displayName: 'Run Playwright tests'
env:
CI: 'true'
``` ```
```yml python ```yml python
@ -518,9 +520,9 @@ steps:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
displayName: 'Install dependencies' displayName: 'Install dependencies'
- script: npx playwright install --with-deps - script: playwright install --with-deps
displayName: 'Install Playwright browsers' displayName: 'Install Playwright browsers'
- script: npx playwright test - script: pytest
displayName: 'Run Playwright tests' displayName: 'Run Playwright tests'
``` ```
@ -591,6 +593,8 @@ steps:
displayName: 'Install Playwright browsers' displayName: 'Install Playwright browsers'
- script: npx playwright test - script: npx playwright test
displayName: 'Run Playwright tests' displayName: 'Run Playwright tests'
env:
CI: 'true'
- task: PublishTestResults@2 - task: PublishTestResults@2
displayName: 'Publish test results' displayName: 'Publish test results'
inputs: inputs:
@ -679,6 +683,8 @@ steps:
displayName: 'Install Playwright browsers' displayName: 'Install Playwright browsers'
- script: npx playwright test --project=$(project) --shard=$(shardIndex)/$(shardTotal) - script: npx playwright test --project=$(project) --shard=$(shardIndex)/$(shardTotal)
displayName: 'Run Playwright tests' displayName: 'Run Playwright tests'
env:
CI: 'true'
``` ```
@ -702,6 +708,8 @@ steps:
displayName: 'npm ci' displayName: 'npm ci'
- script: npx playwright test - script: npx playwright test
displayName: 'Run Playwright tests' displayName: 'Run Playwright tests'
env:
CI: 'true'
``` ```
```yml python ```yml python