Skip to content

Commit

Permalink
Add checkEverything.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Schulte committed Dec 20, 2018
1 parent a8c34a5 commit a97f42f
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 41 deletions.
3 changes: 3 additions & 0 deletions .scripts/checkEverything.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { checkEverything } from "@ts-common/azure-js-dev-tools";

checkEverything();
3 changes: 3 additions & 0 deletions .scripts/checkForOnlyCalls.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { checkForOnlyCalls } from "@ts-common/azure-js-dev-tools";

checkForOnlyCalls();
2 changes: 1 addition & 1 deletion .scripts/checkPackageJsonVersion.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { checkPackageJsonVersion } from "@ts-common/azure-js-dev-tools";

process.exitCode = checkPackageJsonVersion(__dirname);
checkPackageJsonVersion();
3 changes: 0 additions & 3 deletions .scripts/checkTestsForOnly.ts

This file was deleted.

50 changes: 17 additions & 33 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@ trigger:
- master

jobs:
- job: Check_Everything
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
command: custom
verbose: false
customCommand: install
- task: Npm@1
displayName: 'npm run check:everything -- --azure-devops'
inputs:
command: custom
verbose: false
customCommand: run check:everything -- --azure-devops
- job: Test
pool:
vmImage: 'Ubuntu 16.04'
Expand Down Expand Up @@ -53,36 +69,4 @@ jobs:
TargetFolder: drop
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.SourcesDirectory)/drop
- job: Check_Tests_For_Only
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
command: custom
verbose: false
customCommand: install
- task: Npm@1
displayName: 'npm run check:testsforonly -- --azure-devops'
inputs:
command: custom
verbose: false
customCommand: run check:testsforonly -- --azure-devops
- job: Check_PackageJson_Version_Number
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
command: custom
verbose: false
customCommand: install
- task: Npm@1
displayName: 'npm run check:packagejsonversion -- --azure-devops'
inputs:
command: custom
verbose: false
customCommand: run check:packagejsonversion -- --azure-devops
pathtoPublish: $(Build.SourcesDirectory)/drop
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"email": "[email protected]",
"url": "https://github.com/Azure/ms-rest-azure-js"
},
"version": "1.2.3",
"version": "1.2.4",
"description": "Isomorphic Azure client runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest",
"tags": [
"isomorphic",
Expand Down Expand Up @@ -41,11 +41,11 @@
],
"license": "MIT",
"dependencies": {
"@azure/ms-rest-js": "^1.2.4",
"@azure/ms-rest-js": "^1.2.5",
"tslib": "^1.9.2"
},
"devDependencies": {
"@ts-common/azure-js-dev-tools": "^0.5.5",
"@ts-common/azure-js-dev-tools": "^0.6.0",
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.1",
"@types/node": "^10.9.4",
Expand Down Expand Up @@ -107,7 +107,8 @@
"local": "ts-node ./.scripts/local.ts",
"latest": "ts-node ./.scripts/latest.ts",
"check:packagejsonversion": "ts-node ./.scripts/checkPackageJsonVersion.ts",
"check:testsforonly": "ts-node ./.scripts/checkTestsForOnly.ts"
"check:foronlycalls": "ts-node ./.scripts/checkForOnlyCalls.ts",
"check:everything": "ts-node ./.scripts/checkEverything.ts"
},
"sideEffects": false
}

0 comments on commit a97f42f

Please sign in to comment.