Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: run test on macos on azure-pipelines (#44)
- Loading branch information
Showing
5 changed files
with
90 additions
and
19 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,22 @@ | ||
# 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/ryanelian/instapack/blob/master/azure-pipelines.template.yml | ||
|
||
jobs: | ||
- job: ${{ parameters.name }} | ||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: ${{ parameters.node_version }} | ||
displayName: 'Install Node.js' | ||
|
||
- script: | | ||
${{ parameters.install_script }} | ||
displayName: 'Install Packages' | ||
- script: | | ||
${{ parameters.test_script }} | ||
displayName: 'Build & Unit Test' |
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,65 @@ | ||
jobs: | ||
- template: azure-pipelines.template.yml | ||
parameters: | ||
name: win_node_4 | ||
vmImage: 'vs2017-win2016' | ||
node_version: 4 | ||
install_script: 'npm i -g npminstall && npminstall' | ||
test_script: 'npm run ci' | ||
|
||
- template: azure-pipelines.template.yml | ||
parameters: | ||
name: win_node_6 | ||
vmImage: 'vs2017-win2016' | ||
node_version: 6 | ||
install_script: 'npm i -g npminstall && npminstall' | ||
test_script: 'npm run ci' | ||
|
||
- template: azure-pipelines.template.yml | ||
parameters: | ||
name: win_node_8 | ||
vmImage: 'vs2017-win2016' | ||
node_version: 8 | ||
install_script: 'npm i -g npminstall && npminstall' | ||
test_script: 'npm run ci' | ||
|
||
- template: azure-pipelines.template.yml | ||
parameters: | ||
name: win_node_10 | ||
vmImage: 'vs2017-win2016' | ||
node_version: 10 | ||
install_script: 'npm i -g npminstall && npminstall' | ||
test_script: 'npm run ci' | ||
|
||
- template: azure-pipelines.template.yml | ||
parameters: | ||
name: macos_node_4 | ||
vmImage: 'xcode9-macos10.13' | ||
node_version: 4 | ||
install_script: 'npm i -g npminstall && npminstall' | ||
test_script: 'npm run ci' | ||
|
||
- template: azure-pipelines.template.yml | ||
parameters: | ||
name: macos_node_6 | ||
vmImage: 'xcode9-macos10.13' | ||
node_version: 6 | ||
install_script: 'npm i -g npminstall && npminstall' | ||
test_script: 'npm run ci' | ||
|
||
- template: azure-pipelines.template.yml | ||
parameters: | ||
name: macos_node_8 | ||
vmImage: 'xcode9-macos10.13' | ||
node_version: 8 | ||
install_script: 'npm i -g npminstall && npminstall' | ||
test_script: 'npm run ci' | ||
|
||
- template: azure-pipelines.template.yml | ||
parameters: | ||
name: macos_node_10 | ||
vmImage: 'xcode9-macos10.13' | ||
node_version: 10 | ||
install_script: 'npm i -g npminstall && npminstall' | ||
test_script: 'npm run ci' | ||
|
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