Skip to content
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

add windows to the azure pipeline #8018

Merged
merged 1 commit into from Sep 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
35 changes: 35 additions & 0 deletions azure-pipelines.yml
Expand Up @@ -140,3 +140,38 @@ jobs:
yarn cover:integration "test/TestCases(?!D)" --ci
mv coverage/coverage-final.json coverage/coverage-final-3.json
displayName: "Run tests with coverage"
- job: windows
dependsOn:
- basic
- lint
pool:
vmImage: vs2017-win2016
strategy:
maxParallel: 3
matrix:
node-10:
node_version: ^10.10.0
node-8:
node_version: ^8.12.0
node-6:
node_version: ^6.14.4
steps:
- task: NodeTool@0
displayName: "Install Node.js"
inputs:
versionSpec: $(node_version)
- script: |
npm install --global yarn
displayName: "Install Yarn"
- script: |
node -v
yarn -v
displayName: "Print versions"
- script: |
yarn --frozen-lockfile
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies"
- script:
yarn cover:init && yarn cover:integration "test/(?!TestCases)" --ci --maxWorkers=2 && move coverage\\coverage-final.json coverage\\coverage-final-1.json && yarn cover:integration "test/TestCasesD" --ci --maxWorkers=2 && move coverage\\coverage-final.json coverage\\coverage-final-2.json && yarn cover:integration "test/TestCases(?!D)" --ci --maxWorkers=2 && move coverage\\coverage-final.json coverage\\coverage-final-3.json
displayName: "Run tests with coverage"
4 changes: 3 additions & 1 deletion test/statsCases/define-plugin/webpack.config.js
Expand Up @@ -3,7 +3,9 @@ var fs = require("fs");
var join = require("path").join;

function read(path) {
return JSON.stringify(fs.readFileSync(join(__dirname, path), "utf8"));
return JSON.stringify(
fs.readFileSync(join(__dirname, path), "utf8").replace(/\r\n/g, "\n")
);
}

module.exports = [
Expand Down