microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.15.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.ci/common-validation.yml

60lines · modecode

1steps:
2- task: NodeTool@0
3 displayName: 'Use Node 10.x'
4 inputs:
5 versionSpec: 10.x
6
7- bash: npm install gulp react-devtools vsce -g --force
8 displayName: 'npm install gulp react-devtools vsce -g'
9
10- bash: npm ci
11 displayName: 'npm ci'
12
13- bash: npm run vscode:prepublish
14 displayName: 'npm run vscode:prepublish'
15
16- bash: |
17 /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
18 echo ">>> Started xvfb"
19 displayName: Start xvfb
20 condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
21
22- bash: |
23 export CODE_TESTS_PATH=${PWD}/test/localization
24 export CODE_LOCALE=ru
25 npm test
26 displayName: 'Run localization tests'
27 env:
28 DISPLAY: ':99.0'
29
30- bash: 'npm test --verbose'
31 displayName: 'Run host tests'
32 env:
33 DISPLAY: ':99.0'
34
35- bash: gulp test:coverage
36 displayName: 'Run hostless tests'
37
38- task: PublishTestResults@2
39 displayName: 'Publish Debugger Test Results'
40 inputs:
41 testResultsFiles: test/DebuggerTests.xml
42 failTaskOnFailedTests: true
43 testRunTitle: '[Debugger Context] $(Agent.OS) React Native unit tests - Attempt №$(System.JobAttempt)'
44 condition: always()
45
46- task: PublishTestResults@2
47 displayName: 'Publish Extension Test Results'
48 inputs:
49 testResultsFiles: test/ExtensionTests.xml
50 failTaskOnFailedTests: true
51 testRunTitle: '[Extension Context] $(Agent.OS) React Native unit tests - Attempt №$(System.JobAttempt)'
52 condition: always()
53
54- task: PublishTestResults@2
55 displayName: 'Publish Localization Test Results'
56 inputs:
57 testResultsFiles: test/LocalizationTests.xml
58 failTaskOnFailedTests: true
59 testRunTitle: '[Localization Context] $(Agent.OS) React Native unit tests - Attempt №$(System.JobAttempt)'
60 condition: always()