-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up CI with Azure Pipelines (#6495)
* Set up CI with Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update package.json * Adds debug * Tries using bash * Tweaks timeouts * Fixes various things related to the win32 compat * I get the same 22 failed tests with/without the delay. * Fix makeFakeBinary for win32. It needs the ".cmd" extension, otherwise it's ignored. Remove #!/bin/sh and instead add @echo off to clean output Use errorCode 0 so we get output and not a Command failed * Check custom output instead of versions. Running fake binaries there was no way to get local versions of node or yarn. Am I missing something? * Remove quotes from echo (not removed in Windows). Replace ; by /n as the former doesn't actually break statements in Windows batch files. * Some tweaks * Fixes syntax * Fixes tests on Windows * Adds test reporting * Fixes things (?) * Fixes indent * Always run the test result publishing * Fixes yml * Use node scripts to avoid Windows interoperability issues. * Fixes the "must use the same Node as Yarn itself" test * Fixes escaping from within the tests * Removes the accidental .only flag * Fixes a test on Windows * Add support for different drives in Windows. So if code is in D: but temporary folder is in C:, don't try to find a relative path but stay on the absolute one. * No need to getPackageLocation * Add support for environment and arguments by using a custom solution instead of cmd-shim. * Missing escape on path in pnpapi test. * Some cleaning * Runs tests on all three platforms * Fixes write paths * Fixes normalizePath * Disables pkg-tests from CircleCI (moved to Azure) * Increase Windows timeouts and better name Test results (#6680) * Increase timeout in Windows, we're seeing tests failing randomly and others close to default 5 sec. * Distinguish tests published from each job. * Pass name as vmImage is not available * Remove unnecessary detect unfinished tests. * Using strategy var instead of parameter * Use variables instead of strategy * Revert "Disables pkg-tests from CircleCI (moved to Azure)" This reverts commit 8f72462.
- Loading branch information
Showing
20 changed files
with
394 additions
and
47 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,51 @@ | ||
jobs: | ||
|
||
- job: Windows | ||
pool: 'Hosted VS2017' | ||
|
||
variables: | ||
os_name: Windows | ||
|
||
strategy: | ||
matrix: | ||
node_8_x: | ||
node_version: 8.x | ||
node_10_x: | ||
node_version: 10.x | ||
|
||
steps: | ||
- template: scripts/azure-run-tests.yml | ||
|
||
- job: Linux | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
variables: | ||
os_name: Linux | ||
|
||
strategy: | ||
matrix: | ||
node_8_x: | ||
node_version: 8.x | ||
node_10_x: | ||
node_version: 10.x | ||
|
||
steps: | ||
- template: scripts/azure-run-tests.yml | ||
|
||
- job: OSX | ||
pool: | ||
vmImage: 'macOS 10.13' | ||
|
||
variables: | ||
os_name: OSX | ||
|
||
strategy: | ||
matrix: | ||
node_8_x: | ||
node_version: 8.x | ||
node_10_x: | ||
node_version: 10.x | ||
|
||
steps: | ||
- template: scripts/azure-run-tests.yml |
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,2 +1,3 @@ | ||
node_modules | ||
yarn-error.log | ||
junit.xml |
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
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
3 changes: 3 additions & 0 deletions
3
packages/pkg-tests/pkg-tests-fixtures/packages/no-deps-scripted-1.0.0/scripts/install.js
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,3 @@ | ||
const fs = require(`fs`); | ||
|
||
fs.appendFileSync(`${__dirname}/../log.js`, `module.exports.push('install');`); |
4 changes: 4 additions & 0 deletions
4
packages/pkg-tests/pkg-tests-fixtures/packages/no-deps-scripted-1.0.0/scripts/postinstall.js
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,4 @@ | ||
const fs = require(`fs`); | ||
|
||
fs.appendFileSync(`${__dirname}/../log.js`, `module.exports.push('postinstall');`); | ||
fs.appendFileSync(`${__dirname}/../rnd.js`, `module.exports = ${Math.floor(Math.random() * 512000)};`); |
3 changes: 3 additions & 0 deletions
3
packages/pkg-tests/pkg-tests-fixtures/packages/no-deps-scripted-1.0.0/scripts/preinstall.js
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,3 @@ | ||
const fs = require(`fs`); | ||
|
||
fs.appendFileSync(`${__dirname}/../log.js`, `module.exports.push('preinstall');`); |
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
Oops, something went wrong.