-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
chore: initial Azure Pipelines support #7556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0247081
Initial Azure Pipelines support (Linux, Windows, and macOS)
willsmythe cbd61db
Update CHANGELOG.md
kaylangan d378294
Get tests to pass on Azure Pipelines
willsmythe c41ae05
Drop unnecessary VSTS_OVERWRITE_TEMP and fix failing tests. See #7598
willsmythe abf9347
Comment cleanup; fix lint failure in packages/jest-cli/src/SearchSour…
willsmythe dcafcfd
Undo change to SearchSource.js due to #7146; address other feedback
willsmythe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,45 @@ | ||
| # | ||
| # Steps for building and testing Jest. See jobs defined in .azure-pipelines.yml | ||
| # | ||
|
|
||
| # Clones the repo | ||
| steps: | ||
| - checkout: self | ||
|
|
||
| # Ensure Node.js 10 is active | ||
| - task: NodeTool@0 | ||
| inputs: | ||
| versionSpec: '10.x' | ||
| displayName: 'Use Node.js 10' | ||
|
|
||
| # Ensure Python 2.7 is active | ||
| - task: UsePythonVersion@0 | ||
| inputs: | ||
| versionSpec: '2.7' | ||
| displayName: 'Use Python 2.7' | ||
|
|
||
| # Workaround to move source files under a "jest" folder (see .azure-pipelines.yml for details) | ||
| - script: | | ||
| cd / | ||
| mv $(Build.Repository.LocalPath) $(JEST_DIR) | ||
| mkdir $(Build.Repository.LocalPath) | ||
| displayName: 'Move source into jest folder' | ||
|
|
||
| # Run yarn to install dependencies and build | ||
| - script: yarn | ||
| workingDirectory: $(JEST_DIR) | ||
| displayName: 'Install dependencies and build' | ||
|
|
||
| # Run test-ci-partial | ||
| - script: yarn run test-ci-partial | ||
| workingDirectory: $(JEST_DIR) | ||
| displayName: 'Run tests' | ||
|
|
||
| # Publish CI test results | ||
| - task: PublishTestResults@2 | ||
| inputs: | ||
| testResultsFiles: '**/reports/junit/*.xml' | ||
| searchFolder: $(JEST_DIR) | ||
| testRunTitle: 'CI Tests $(Agent.OS)' | ||
| displayName: 'Publish test results' | ||
| condition: succeededOrFailed() |
This file contains hidden or 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,40 @@ | ||
| # | ||
| # 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 | ||
|
|
||
| # By default, Azure Pipelines clones to an "s" directory, which causes tests to fail due to assumption of Jest being run from a "jest" directory. | ||
| # See packages/jest-message-util/src/index.js PATH_JEST_PACKAGES for more details. | ||
| JEST_DIR: $(Agent.BuildDirectory)/jest | ||
|
|
||
| # Ensures the handful of tests that should be skipped during CI are | ||
| CI: true |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.