Skip to content

Commit

Permalink
Use Azure Pipelines instead of Travis and AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
kachkaev committed Dec 22, 2018
1 parent bbf66dc commit e518299
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 65 deletions.
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

31 changes: 0 additions & 31 deletions appveyor.yml

This file was deleted.

39 changes: 39 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
trigger:
- master

jobs:
- job: Lint
displayName: Lint on Linux Node v10
pool:
vmImage: "Ubuntu 16.04"
variables:
NODE_VERSION: 10
steps:
- template: azure-pipelines/jobs/lint.yml

- job: Test_Windows
displayName: Test on Windows Node v10
pool:
vmImage: vs2017-win2016
variables:
NODE_VERSION: 10
steps:
- template: azure-pipelines/jobs/test.yml

- job: Test_macOS
displayName: Test on macOS Node v10
pool:
vmImage: macos-10.13
variables:
NODE_VERSION: 10
steps:
- template: azure-pipelines/jobs/test.yml

- job: Test_Linux
displayName: Test on Linux Node v10
pool:
vmImage: "Ubuntu 16.04"
variables:
NODE_VERSION: 10
steps:
- template: azure-pipelines/jobs/test.yml
5 changes: 5 additions & 0 deletions azure-pipelines/jobs/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
steps:
- template: ../steps/install-nodejs.yml
- template: ../steps/install-dependencies.yml
- script: yarn lint
displayName: "Lint"
5 changes: 5 additions & 0 deletions azure-pipelines/jobs/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
steps:
- template: ../steps/install-nodejs.yml
- template: ../steps/install-dependencies.yml
- script: yarn test
displayName: "Run tests"
3 changes: 3 additions & 0 deletions azure-pipelines/steps/install-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
steps:
- script: yarn install --frozen-lockfile
displayName: "Install dependencies"
5 changes: 5 additions & 0 deletions azure-pipelines/steps/install-nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "$(NODE_VERSION)"
displayName: "Install Node.js"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"scripts": {
"build": "tsc --project .",
"clean": "rimraf cache coverage dist",
"format": "prettier --write {*,src/**/*}.{md,js,json,ts}",
"lint": "tsc --project . --noEmit && tslint --project . && prettier --check {*,src/**/*}.{md,js,json,ts}",
"format": "prettier --write {*,{azure-pipelines,src}/**/*}.{md,js,json,ts,yml}",
"lint": "tsc --project . --noEmit && tslint --project . && prettier --check {*,{azure-pipelines,src}/**/*}.{md,js,json,ts,yml}",
"test": "yarn clean && yarn build && jest",
"prepublishOnly": "yarn lint && yarn test"
},
Expand Down

0 comments on commit e518299

Please sign in to comment.