-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into do-not-trigger-tests-on-atime-change
- Loading branch information
Showing
2,659 changed files
with
291,471 additions
and
140,056 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# Azure Pipelines configuration for building and testing Jest on Linux, Windows, and macOS. | ||
# | ||
|
||
jobs: | ||
- job: Linux | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
steps: | ||
- template: .azure-pipelines-steps.yml | ||
|
||
- job: Windows | ||
pool: | ||
vmImage: vs2017-win2016 | ||
steps: | ||
- script: | | ||
git config --global core.autocrlf false | ||
git config --global core.symlinks true | ||
displayName: 'Preserve LF endings and symbolic links on check out' | ||
- template: .azure-pipelines-steps.yml | ||
|
||
- job: macOS | ||
pool: | ||
vmImage: macos-10.13 | ||
steps: | ||
# This step can be removed once Mercurial gets installed on the macOS image. See https://github.com/Microsoft/azure-pipelines-image-generation/issues/604 | ||
- script: HOMEBREW_NO_AUTO_UPDATE=1 brew install mercurial | ||
displayName: 'Install Mercurial' | ||
- template: .azure-pipelines-steps.yml | ||
|
||
variables: | ||
# Used by chalk. Ensures output from Jest includes ANSI escape characters that are needed to match test snapshots. | ||
FORCE_COLOR: 1 | ||
|
||
# Ensures the handful of tests that should be skipped during CI are | ||
CI: true | ||
|
||
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
# | ||
# Some of these options are also respected by Prettier | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[{*.md,*.snap}] | ||
[*.{md,snap}] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.