Skip to content

Commit

Permalink
Chore: CI with Azure Pipelines
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
mysticatea committed Jun 16, 2019
1 parent aef8ea1 commit b9129dc
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 54 deletions.
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

9 changes: 1 addition & 8 deletions README.md
@@ -1,6 +1,5 @@
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Build status][appveyor-image]][appveyor-url]
[![Build Status](https://dev.azure.com/eslint/eslint/_apis/build/status/eslint.eslint?branchName=master)](https://dev.azure.com/eslint/eslint/_build/latest?definitionId=1&branchName=master)
[![Downloads][downloads-image]][downloads-url]
[![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=282608)](https://www.bountysource.com/trackers/282608-eslint?utm_source=282608&utm_medium=shield&utm_campaign=TRACKER_BADGE)
[![Join the chat at https://gitter.im/eslint/eslint](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/eslint/eslint?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down Expand Up @@ -271,11 +270,5 @@ The following companies, organizations, and individuals support ESLint's ongoing

[npm-image]: https://img.shields.io/npm/v/eslint.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/eslint
[travis-image]: https://img.shields.io/travis/eslint/eslint/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/eslint/eslint
[appveyor-image]: https://ci.appveyor.com/api/projects/status/iwxmiobcvbw3b0av/branch/master?svg=true
[appveyor-url]: https://ci.appveyor.com/project/nzakas/eslint/branch/master
[coveralls-image]: https://img.shields.io/coveralls/eslint/eslint/master.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/eslint/eslint?branch=master
[downloads-image]: https://img.shields.io/npm/dm/eslint.svg?style=flat-square
[downloads-url]: https://www.npmjs.com/package/eslint
28 changes: 0 additions & 28 deletions appveyor.yml

This file was deleted.

53 changes: 53 additions & 0 deletions azure-pipelines.yml
@@ -0,0 +1,53 @@
trigger:
- master

jobs:
- job: tests_on_linux
displayName: Test on Linux
pool:
vmImage: 'Ubuntu-16.04'
strategy:
matrix:
"Node.js 12":
node_version: 12.x
"Node.js 10":
node_version: 10.x
"Node.js 8":
node_version: 8.x
steps:
- task: NodeTool@0
displayName: Install Node.js
inputs:
versionSpec: $(node_version)
- script: npm install
displayName: Install Packages
- script: npm test
displayName: Test

- job: tests_on_windows
displayName: Test on Windows
pool:
vmImage: 'Windows-2019'
steps:
- task: NodeTool@0
displayName: Install Node.js
inputs:
versionSpec: 12.x
- script: npm install
displayName: Install Packages
- script: npm test
displayName: Test

- job: tests_on_macos
displayName: Test on macOS
pool:
vmImage: 'macOS-10.14'
steps:
- task: NodeTool@0
displayName: Install Node.js
inputs:
versionSpec: 12.x
- script: npm install
displayName: Install Packages
- script: npm test
displayName: Test
5 changes: 5 additions & 0 deletions tests/lib/cli-engine/_utils.js
Expand Up @@ -293,6 +293,11 @@ function defineConfigArrayFactoryWithInMemoryFileSystem({
platform: process.platform === "win32" ? "win32" : "posix"
});

// Support D: drive.
if (process.platform === "win32") {
fs._roots.set("D:", fs._makeDir(0o777)); // eslint-disable-line no-underscore-dangle
}

supportMkdirRecursiveOption(fs, cwd);
fs.mkdirSync(cwd(), { recursive: true });

Expand Down

0 comments on commit b9129dc

Please sign in to comment.