Skip to content

Commit

Permalink
Integrate Azure Pipelines CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitsuman committed Jun 27, 2019
1 parent be13fe5 commit 4b413eb
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# -----------------------------------------------------------------------------------------------
# Copyright (c) Red Hat, Inc. All rights reserved.
# Licensed under the MIT License. See LICENSE file in the project root for license information.
# -----------------------------------------------------------------------------------------------

jobs:
- job: Windows
pool:
name: Hosted VS2017
demands: npm
steps:
- task: NodeTool@0
displayName: 'Use Node 10.x'
inputs:
versionSpec: 10.16.0
- task: Npm@1
displayName: 'Install dependencies'
inputs:
verbose: false
- script: |
npm install -g typescript --save-dev
npm install
npm run vscode:prepublish
displayName: 'npm install, run prepublish'
- script: |
npm test --silent
displayName: 'Run tests'
- script: |
node node_modules/codecov/bin/codecov -f coverage/coverage-final.json -t $(CODECOV_TOKEN)
displayName: 'Upload coverage to codecov.io'
- job: macOS
pool:
name: Hosted macOS
demands: npm
steps:
- task: NodeTool@0
displayName: 'Use Node 10.x'
inputs:
versionSpec: 10.16.0
- task: Npm@1
displayName: 'Install dependencies'
inputs:
verbose: true
- script: |
npm run vscode:prepublish
displayName: 'npm install, run prepublish'
- script: |
npm test --silent
displayName: 'Run tests'
- script: |
node node_modules/codecov/bin/codecov -f coverage/coverage-final.json -t $(CODECOV_TOKEN)
displayName: 'Upload coverage to codecov.io'
- job: Linux
pool:
name: Hosted Ubuntu 1604
steps:
- task: NodeTool@0
displayName: 'Use Node 10.x'
inputs:
versionSpec: 10.16.0
- task: Npm@1
displayName: 'Install dependencies'
inputs:
verbose: true
- script: |
npm run vscode:prepublish
displayName: 'npm install, run prepublish'
- script: |
set -e
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
disown -ar
displayName: 'Start xvfb'
- script: |
npm test --silent
displayName: 'Run tests'
env:
DISPLAY: :10
- script: |
node node_modules/codecov/bin/codecov -f coverage/coverage-final.json -t $(CODECOV_TOKEN)
displayName: 'Upload coverage to codecov.io'

0 comments on commit 4b413eb

Please sign in to comment.