forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.azure-pipelines-steps.yml
44 lines (36 loc) · 1.05 KB
/
.azure-pipelines-steps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# Steps for building and testing Jest. See jobs defined in .azure-pipelines.yml
#
steps:
- checkout: self
path: jest
# Ensure Node.js 10 is active
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Use Node.js 12'
# Ensure Python 2.7 is active
- task: UsePythonVersion@0
inputs:
versionSpec: '2.7'
displayName: 'Use Python 2.7'
# Run yarn to install dependencies and build
- script: node scripts/remove-postinstall
displayName: 'Remove postinstall script'
- task: CacheBeta@0
inputs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: Cache Yarn packages
- script: yarn install-no-ts-build
displayName: 'Install dependencies'
# Run test-ci-partial
- script: yarn run test-ci-partial
displayName: 'Run tests'
# Publish CI test results
- task: PublishTestResults@2
inputs:
testResultsFiles: '**/reports/junit/*.xml'
testRunTitle: 'CI Tests $(Agent.OS)'
displayName: 'Publish test results'
condition: succeededOrFailed()