22# Steps for building and testing Jest. See jobs defined in .azure-pipelines.yml
33#
44
5- # Clones the repo
65steps :
76 - checkout : self
7+ path : jest
88
99 # Ensure Node.js 10 is active
1010 - task : NodeTool@0
@@ -18,34 +18,24 @@ steps:
1818 versionSpec : ' 2.7'
1919 displayName : ' Use Python 2.7'
2020
21- # Workaround to move source files under a "jest" folder (see .azure-pipelines.yml for details)
22- - script : |
23- cd /
24- mv $(Build.Repository.LocalPath) $(JEST_DIR)
25- mkdir $(Build.Repository.LocalPath)
26- displayName: 'Move source into jest folder'
27-
2821 # Run yarn to install dependencies and build
2922 - script : node scripts/remove-postinstall
30- workingDirectory : $(JEST_DIR)
3123 displayName : ' Remove postinstall script'
24+
3225 - script : yarn --no-progress --frozen-lockfile
33- workingDirectory : $(JEST_DIR)
3426 displayName : ' Install dependencies'
27+
3528 - script : node scripts/build
36- workingDirectory : $(JEST_DIR)
3729 displayName : ' Build'
3830
3931 # Run test-ci-partial
4032 - script : yarn run test-ci-partial
41- workingDirectory : $(JEST_DIR)
4233 displayName : ' Run tests'
4334
4435 # Publish CI test results
4536 - task : PublishTestResults@2
4637 inputs :
4738 testResultsFiles : ' **/reports/junit/*.xml'
48- searchFolder : $(JEST_DIR)
4939 testRunTitle : ' CI Tests $(Agent.OS)'
5040 displayName : ' Publish test results'
5141 condition : succeededOrFailed()
0 commit comments