Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Azure pipelines #838

Merged
merged 4 commits into from
Mar 16, 2019
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .azure-pipelines-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# Steps for building and testing tslint-microsoft-contrib. See jobs defined in .azure-pipelines.yml.
#

steps:
# Clones the repo. This is an explicit step to preserve symlinks for Windows.
- checkout: self

- task: NodeTool@0
inputs:
versionSpec: $(NODE_VERSION)
checkLatest: 'true'
displayName: 'Install Node.js'

# Run npm ci by default unless NPM_INSTALL is set
- script: npm ci
displayName: 'Install dependencies'
condition: not(variables.NPM_INSTALL)

# Otherwise, run npm install if NPM_INSTALL is set (typically for Node versions < 10.x)
- script: npm install
displayName: 'Install dependencies (npm install)'
condition: variables.NPM_INSTALL

- script: npm run test
displayName: 'Run tests'
54 changes: 54 additions & 0 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
trigger:
- master
- azure-pipelines

jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
Node6:
NODE_VERSION: '6.x'
NPM_INSTALL: true
TEST_TITLE: 'Linux node 6'
Node8:
NODE_VERSION: '8.x'
NPM_INSTALL: true
TEST_TITLE: 'Linux node 8'
Node10:
NODE_VERSION: '10.x'
TEST_TITLE: 'Linux node 10'
Node11:
NODE_VERSION: '11.x'
TEST_TITLE: 'Linux node 11'

steps:
- template: .azure-pipelines-steps.yml

- job: Windows
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
Node6:
NODE_VERSION: '6.x'
NPM_INSTALL: true
TEST_TITLE: 'Windows node 6'
Node8:
NODE_VERSION: '8.x'
NPM_INSTALL: true
TEST_TITLE: 'Windows node 8'
Node10:
NODE_VERSION: '10.x'
TEST_TITLE: 'Windows node 10'
Node11:
NODE_VERSION: '11.x'
TEST_TITLE: 'Windows node 11'

steps:
- 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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

[![npm version](https://badge.fury.io/js/tslint-microsoft-contrib.svg)](https://badge.fury.io/js/tslint-microsoft-contrib)
[![Downloads](https://img.shields.io/npm/dm/tslint-microsoft-contrib.svg)](https://npmjs.org/package/tslint-microsoft-contrib)
[![Build Status](https://travis-ci.org/Microsoft/tslint-microsoft-contrib.svg?branch=master)](https://travis-ci.org/Microsoft/tslint-microsoft-contrib)
[![TravisCI Build Status](https://travis-ci.org/Microsoft/tslint-microsoft-contrib.svg?branch=master)](https://travis-ci.org/Microsoft/tslint-microsoft-contrib)
[![Azure Pipelines Build Status](https://dev.azure.com/ms/tslint-microsoft-contrib/_apis/build/status/tslint-microsoft-contrib?branchName=master)](https://dev.azure.com/ms/tslint-microsoft-contrib/_build/latest?definitionId=68&branchName=master)
[![Join the chat at https://gitter.im/Microsoft/tslint-microsoft-contrib](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Microsoft/tslint-microsoft-contrib?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

Expand Down