Add more platforms, build out script

This commit is contained in:
Daniel Imms
2018-09-10 23:01:18 -07:00
committed by GitHub
parent c88bc62ff9
commit 3a97dbecde
+64 -11
View File
@@ -3,16 +3,69 @@
# Add steps that analyze code, save build artifacts, deploy, and more: # Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/vsts/pipelines/languages/javascript # https://docs.microsoft.com/vsts/pipelines/languages/javascript
pool: jobs:
vmImage: 'Ubuntu 16.04' - job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '8.x'
displayName: 'Install Node.js'
- script: |
yarn install
displayName: 'Install yarn dependencies'
- script: |
yarn tsc
displayName: 'Build'
- script: |
yarn mocha
displayName: 'Test'
- script: |
yarn lint
displayName: 'Lint'
- script: |
yarn test-coverage
displayName: 'Generate and publish coverage'
steps: - job: macOS
- task: NodeTool@0 pool:
inputs: vmImage: 'xcode9-macos10.13'
versionSpec: '8.x' steps:
displayName: 'Install Node.js' - task: NodeTool@0
inputs:
versionSpec: '8.x'
displayName: 'Install Node.js'
- script: |
yarn install
displayName: 'Install yarn dependencies'
- script: |
yarn tsc
displayName: 'Build'
- script: |
yarn mocha
displayName: 'Test'
- script: |
yarn lint
displayName: 'Lint'
- script: | - job: Windows
npm install pool:
npm run build vmImage: 'vs2017-win2016'
displayName: 'npm install and build' steps:
- task: NodeTool@0
inputs:
versionSpec: '8.x'
displayName: 'Install Node.js'
- script: |
yarn install
displayName: 'Install yarn dependencies'
- script: |
yarn tsc
displayName: 'Build'
- script: |
yarn mocha
displayName: 'Test'
- script: |
yarn lint
displayName: 'Lint'