-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[Merge is planed on 2019/04/29] Move scripts from this repo. #5719
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
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
5f9a909
Breaking Change2
sergey-shandar 5700f08
Experimental lintdiff
sergey-shandar cb5caa5
No more model/semantic/syntax validations in travis-CI.
sergey-shandar 3e2a0c6
Scripts 0.1.8
sergey-shandar 39cad03
Use scripts from @azure/rest-api-specs-scripts
sergey-shandar 5151be7
ts-utils
sergey-shandar 4d24cf6
fix breaking changes
sergey-shandar f597442
momentOfTruthPostProcessing
sergey-shandar 794b245
momentOfTruthPostProcessing.ts
sergey-shandar 151ed28
remove 'ts-utils.ts'
sergey-shandar acfad34
Remove `utils`
sergey-shandar ae39843
postToGitHub.ts
sergey-shandar 30285c0
switch to momentOfTruthUtils
sergey-shandar 36eff22
minor
sergey-shandar c30473c
Syntax.ts
sergey-shandar 9f0ac27
semanticValidation.ts
sergey-shandar 466b17f
Merge from master
sergey-shandar 3e694ea
another try
sergey-shandar 67ced89
minor update
sergey-shandar 95cbfde
URL/fix
sergey-shandar c0cac7a
OAD ^0.2.13
sergey-shandar 2cec6cc
Merge rom master
sergey-shandar a7a4f79
update to new scripts.
sergey-shandar 39961d8
Use scripts from `sergey/move-from-specs-repo`.
sergey-shandar 39e435f
simplified model validation.
sergey-shandar 1b1962c
preprod
sergey-shandar 4ca14f4
postToGitHub
sergey-shandar a73a3ac
momentOfTruthPostProcessing
sergey-shandar 274eb1d
Semantic Validation
sergey-shandar 7dca6bb
Merge rom master
sergey-shandar c86deb2
getSwaggers()
sergey-shandar 89fe9c3
Use `getExamples()` and `getSwaggers()`.
sergey-shandar 698428c
Update package.json
sergey-shandar 3a5d5d3
Remove travis-CI jobs except branch strategy.
sergey-shandar 41c7b0a
Merge branch 'master' into sergey/move-scripts-stage2
sergey-shandar 19170cf
Merge from master.
sergey-shandar 2cb580f
Merge branch 'sergey/move-scripts-stage2' of https://github.com/Azure…
sergey-shandar bfec1f7
remove model and semantic validations version 2.
sergey-shandar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,41 +1,6 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License in the project root for license information. | ||
|
|
||
| import { devOps, cli } from '@azure/avocado' | ||
| import { utils } from '@azure/rest-api-specs-scripts' | ||
| import * as cp from 'child_process' | ||
| import { modelValidation } from '@azure/rest-api-specs-scripts' | ||
|
|
||
| const exec = (cmd: string, options?: cp.SpawnSyncOptions) => { | ||
| const result = cp.spawnSync( | ||
| cmd, | ||
| { | ||
| ...options, | ||
| shell: true, | ||
| stdio: [process.stdin, process.stdout, process.stderr] | ||
| } | ||
| ) | ||
| return result.status | ||
| } | ||
|
|
||
| async function main() { | ||
| const pr = await devOps.createPullRequestProperties(cli.defaultConfig()) | ||
| const swaggersToProcess = await utils.getFilesChangedInPR(pr); | ||
| let result = 0 | ||
| for (const swagger of swaggersToProcess) { | ||
| try { | ||
| // await oav.validateExamples(swagger, null, {consoleLogLevel: 'error', pretty: true}); | ||
| // run OAV as a separate process to avoid memory issues. | ||
| const r = exec(`node node_modules/oav/dist/cli.js validate-example ${swagger} --pretty`) | ||
| if (result === 0) { | ||
| result = r | ||
| } | ||
| } catch (e) { | ||
| console.error("error: ") | ||
| console.error(e) | ||
| result = 1 | ||
| } | ||
| } | ||
| process.exitCode = result | ||
| } | ||
|
|
||
| main().catch(e => { console.log(e); process.exit(1); }) | ||
| modelValidation.main().catch(e => { console.log(e); process.exit(1); }) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.