Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up CI with Azure Pipelines #1

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
59 changes: 59 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

resources:
containers:
- container: my_container
image: ubuntu:16.04

jobs:
- job: Linux
pool:
vmImage: 'Ubuntu 16.04'
container: my_container
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
sudo apt-get install yarn
yarn
displayName: 'yarn'
- script: |
yarn run test-ci-partial
displayName: 'test'

- job: macOS
pool:
vmImage: 'macOS-10.13'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
yarn
yarn jest --color
displayName: 'install, build, and test'

- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- task: UsePythonVersion@0
inputs:
versionSpec: '2.7'
displayName: 'Install Python'
- script: |
yarn
displayName: 'yarn'
- script: |
yarn jest --color
displayName: 'test'