-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: run ci on azure-pipelines (#292)
- Loading branch information
1 parent
b760530
commit 5e80ee8
Showing
5 changed files
with
68 additions
and
22 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
This file was deleted.
Oops, something went wrong.
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,49 @@ | ||
# Node.js | ||
# Build a general Node.js application with npm. | ||
# Add steps that analyze code, save build artifacts, deploy, and more: | ||
# https://docs.microsoft.com/vsts/pipelines/languages/javascript | ||
# demo: https://github.com/parcel-bundler/parcel/blob/master/azure-pipelines-template.yml | ||
|
||
jobs: | ||
- job: ${{ parameters.name }} | ||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
strategy: | ||
matrix: | ||
node_6: | ||
node_version: 6 | ||
node_8: | ||
node_version: 8 | ||
node_10: | ||
node_version: 10 | ||
maxParallel: 3 | ||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: $(node_version) | ||
displayName: 'Install Node.js' | ||
|
||
# Set ENV | ||
- ${{ if ne(parameters.name, 'windows') }}: | ||
- script: | | ||
echo $PWD | ||
export PATH="$PATH:$PWD/node_modules/.bin" | ||
echo "##vso[task.setvariable variable=PATH]$PATH" | ||
displayName: Set ENV | ||
- ${{ if eq(parameters.name, 'windows') }}: | ||
- script: | | ||
echo %cd% | ||
set PATH=%PATH%;%cd%\node_modules\.bin | ||
echo "##vso[task.setvariable variable=PATH]%PATH%" | ||
displayName: Set ENV | ||
- script: | | ||
npm i | ||
displayName: 'Install Packages' | ||
- script: | | ||
npm run ci | ||
displayName: 'Build & Unit Test' | ||
- ${{ if ne(parameters.name, 'windows') }}: | ||
- script: | | ||
npm i codecov && codecov | ||
displayName: 'Report Coverage' |
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,16 @@ | ||
jobs: | ||
- template: azure-pipelines.template.yml | ||
parameters: | ||
name: linux | ||
vmImage: 'ubuntu-16.04' | ||
|
||
- template: azure-pipelines.template.yml | ||
parameters: | ||
name: windows | ||
vmImage: 'vs2017-win2016' | ||
|
||
- template: azure-pipelines.template.yml | ||
parameters: | ||
name: macos | ||
vmImage: 'xcode9-macos10.13' | ||
|
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