diff --git a/.scripts/checkEverything.ts b/.scripts/checkEverything.ts new file mode 100644 index 0000000..4d91adb --- /dev/null +++ b/.scripts/checkEverything.ts @@ -0,0 +1,3 @@ +import { checkEverything } from "@ts-common/azure-js-dev-tools"; + +checkEverything(); \ No newline at end of file diff --git a/.scripts/checkForOnlyCalls.ts b/.scripts/checkForOnlyCalls.ts new file mode 100644 index 0000000..c574860 --- /dev/null +++ b/.scripts/checkForOnlyCalls.ts @@ -0,0 +1,3 @@ +import { checkForOnlyCalls } from "@ts-common/azure-js-dev-tools"; + +checkForOnlyCalls(); \ No newline at end of file diff --git a/.scripts/checkPackageJsonVersion.ts b/.scripts/checkPackageJsonVersion.ts index 5432d9c..845b8a0 100644 --- a/.scripts/checkPackageJsonVersion.ts +++ b/.scripts/checkPackageJsonVersion.ts @@ -1,3 +1,3 @@ import { checkPackageJsonVersion } from "@ts-common/azure-js-dev-tools"; -process.exitCode = checkPackageJsonVersion(__dirname); \ No newline at end of file +checkPackageJsonVersion(); \ No newline at end of file diff --git a/.scripts/checkTestsForOnly.ts b/.scripts/checkTestsForOnly.ts deleted file mode 100644 index 0797d2d..0000000 --- a/.scripts/checkTestsForOnly.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { checkTestsForOnly, resolvePath } from "@ts-common/azure-js-dev-tools"; - -checkTestsForOnly(resolvePath(__dirname, "..", "test")); \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6d7cd72..6d0366c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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' @@ -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 \ No newline at end of file + pathtoPublish: $(Build.SourcesDirectory)/drop \ No newline at end of file diff --git a/package.json b/package.json index 0913e03..09b1746 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "email": "azsdkteam@microsoft.com", "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", @@ -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", @@ -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 }