-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be13fe5
commit 4b413eb
Showing
1 changed file
with
80 additions
and
0 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,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' |