fix(ci): use script instead of pwsh (#4394)

pwsh doesn't cancel if native command fails.
This commit is contained in:
Michael Kriese 2019-08-28 08:59:46 +02:00 committed by Rhys Arkins
parent 359486adc8
commit 11236730fb

View file

@ -9,10 +9,10 @@ steps:
versionSpec: '$(pythonVersion)' versionSpec: '$(pythonVersion)'
displayName: 'Install Python' displayName: 'Install Python'
- pwsh: python -m pip install --upgrade pip - script: python -m pip install --upgrade pip
displayName: 'Install python tools' displayName: 'Install python tools'
- pwsh: | - script: |
git config --global user.email 'bot@renovateapp.com' git config --global user.email 'bot@renovateapp.com'
git config --global user.name 'Renovate Bot' git config --global user.name 'Renovate Bot'
node --version node --version
@ -25,21 +25,21 @@ steps:
fetchDepth: 5 fetchDepth: 5
path: renovate path: renovate
- pwsh: | - script: |
yarn install --frozen-lockfile --link-duplicates yarn install --frozen-lockfile --link-duplicates
pip install --user -r requirements.txt pip install --user -r requirements.txt
displayName: 'Installing Dependencies' displayName: 'Installing Dependencies'
- pwsh: | - script: |
yarn lint yarn lint
yarn test-schema yarn test-schema
yarn type-check yarn type-check
displayName: 'Lint' displayName: 'Lint'
- pwsh: yarn build - script: yarn build
displayName: 'Build' displayName: 'Build'
- pwsh: yarn jest --maxWorkers=2 --ci --reporters=default --reporters=jest-junit --coverageReporters=text-summary --coverageReporters=cobertura - script: yarn jest --maxWorkers=2 --ci --reporters=default --reporters=jest-junit --coverageReporters=text-summary --coverageReporters=cobertura
displayName: 'Unit Tests' displayName: 'Unit Tests'
- task: PublishTestResults@2 - task: PublishTestResults@2
@ -56,5 +56,5 @@ steps:
displayName: 'Publish coverage results' displayName: 'Publish coverage results'
condition: succeededOrFailed() condition: succeededOrFailed()
- pwsh: yarn test-e2e - script: yarn test-e2e
displayName: 'E2E Tests' displayName: 'E2E Tests'