-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Set up CI with Azure Pipelines #6495
Changes from 8 commits
b631120
7f05fe3
a1f0994
573c9e7
0d801d0
3e168d7
808eb7e
95eb3d7
b95bbc0
ea5810e
6830dd3
3a0c614
c743366
2c6949f
2312b35
596e8c1
7c5a6be
c5dfc47
9273271
0c17392
420f74f
6b2b594
b7cf111
15bc762
fbe8ced
0c4bd14
3c1a97e
990f43a
9cf85d6
1bbee27
1d9ea16
adf5a2b
a2dabc9
e786a9b
f96f54f
8f72462
3a8e9e5
649ae72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# Node.js | ||
# Build a general Node.js project with npm. | ||
# Add steps that analyze code, save build artifacts, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | ||
|
||
jobs: | ||
|
||
- job: Windows | ||
|
||
pool: 'Hosted VS2017' | ||
|
||
strategy: | ||
matrix: | ||
# node_8_x: | ||
# node_version: 8.x | ||
node_10_x: | ||
node_version: 10.x | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: $(node_version) | ||
displayName: 'Install Node.js' | ||
|
||
- bash: | | ||
yarn | ||
yarn run build | ||
ls -lhR bin | ||
ls -lhR lib | ||
displayName: 'install and build' | ||
|
||
- script: | | ||
cd packages/pkg-tests | ||
yarn | ||
displayName: 'install the acceptance tests' | ||
|
||
- script: | | ||
cd packages/pkg-tests | ||
yarn jest yarn --detectOpenHandles | ||
displayName: 'run the acceptance tests' | ||
|
||
# - job: Linux | ||
# | ||
# pool: | ||
# vmImage: 'Ubuntu 16.04' | ||
# | ||
# strategy: | ||
# matrix: | ||
# node_8_x: | ||
# node_version: 8.x | ||
# node_10_x: | ||
# node_version: 10.x | ||
# | ||
# steps: | ||
# - task: NodeTool@0 | ||
# inputs: | ||
# versionSpec: $(node_version) | ||
# displayName: 'Install Node.js' | ||
# | ||
# - script: | | ||
# yarn | ||
# yarn build | ||
# displayName: 'install and build' | ||
# | ||
# - script: | | ||
# cd packages/pkg-tests | ||
# yarn | ||
# displayName: 'install the acceptance tests' | ||
# | ||
# - script: | | ||
# cd packages/pkg-tests | ||
# yarn jest yarn | ||
# displayName: 'run the acceptance tests' | ||
# | ||
# - job: OSX | ||
# | ||
# pool: | ||
# vmImage: 'macOS 10.13' | ||
# | ||
# strategy: | ||
# matrix: | ||
# node_8_x: | ||
# node_version: 8.x | ||
# node_10_x: | ||
# node_version: 10.x | ||
# | ||
# steps: | ||
# - task: NodeTool@0 | ||
# inputs: | ||
# versionSpec: $(node_version) | ||
# displayName: 'Install Node.js' | ||
# | ||
# - script: | | ||
# yarn | ||
# yarn build | ||
# displayName: 'install and build' | ||
# | ||
# - script: | | ||
# cd packages/pkg-tests | ||
# yarn | ||
# displayName: 'install the acceptance tests' | ||
# | ||
# - script: | | ||
# cd packages/pkg-tests | ||
# yarn jest yarn | ||
# displayName: 'run the acceptance tests' | ||
# |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,7 +148,7 @@ export default class TarballFetcher extends BaseFetcher { | |
reject(new MessageError(this.config.reporter.lang('errorExtractingTarball', err.message, tarballPath))); | ||
}); | ||
|
||
extractorStream.pipe(untarStream).on('finish', () => { | ||
const end = () => { | ||
const error = this.validateError; | ||
const hexDigest = this.validateIntegrity ? this.validateIntegrity.hexDigest() : ''; | ||
if ( | ||
|
@@ -189,7 +189,12 @@ export default class TarballFetcher extends BaseFetcher { | |
return resolve({ | ||
hash: this.hash || hexDigest, | ||
}); | ||
}; | ||
|
||
extractorStream.pipe(untarStream).on('finish', () => { | ||
setTimeout(end, 1000); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the delay I was mentionning. Removing it seems to cause issues with:
It seems like the |
||
}); | ||
|
||
return {validateStream, extractorStream}; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ const isDirRegExp = /\/$/; | |
const isStrictRegExp = /^\.{0,2}\//; | ||
|
||
// Splits a require request into its components, or return null if the request is a file path | ||
const pathRegExp = /^(?!\.{0,2}(?:\/|$))((?:@[^\/]+\/)?[^\/]+)\/?(.*|)$/; | ||
const pathRegExp = /^(?![a-zA-Z]:[\\\/]|\\\\|\.{0,2}(?:\/|$))((?:@[^\/]+\/)?[^\/]+)\/?(.*|)$/; | ||
|
||
// Keep a reference around ("module" is a common name in this context, so better rename it to something more significant) | ||
const pnpModule = module; | ||
|
@@ -323,7 +323,7 @@ exports.resolveToUnqualified = function resolveToUnqualified(request, issuer, {c | |
// contain multiple levels of dependencies (ie. a yarn.lock inside a subfolder of a yarn.lock). This is | ||
// typically solved using workspaces, but not all of them have been converted already. | ||
|
||
if (ignorePattern && ignorePattern.test(issuer)) { | ||
if (ignorePattern && ignorePattern.test(normalizePath(path.normalize(issuer)))) { | ||
const result = callNativeResolution(request, issuer); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Depending on how the |
||
|
||
if (result === false) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☝️ no need for explicit template string use above.