зеркало из https://github.com/Azure/autorest.git
Родитель
4d5a719565
Коммит
450ee0b968
|
@ -375,12 +375,12 @@ scope-transform-string:
|
|||
skip-upgrade-check: {}
|
||||
use: []
|
||||
use-extension:
|
||||
'@microsoft.azure/autorest.csharp': ~2.2.0
|
||||
'@microsoft.azure/autorest.csharp': ~2.2.45
|
||||
'@microsoft.azure/autorest.modeler': 2.3.38
|
||||
'@microsoft.azure/classic-openapi-validator': ~1.0.3
|
||||
'@microsoft.azure/openapi-validator': ~1.0.0
|
||||
used-extension:
|
||||
- '["@microsoft.azure/autorest.csharp","~2.2.0"]'
|
||||
- '["@microsoft.azure/autorest.csharp","~2.2.45"]'
|
||||
- '["@microsoft.azure/classic-openapi-validator","~1.0.3"]'
|
||||
- '["@microsoft.azure/openapi-validator","~1.0.0"]'
|
||||
- '["@microsoft.azure/autorest.modeler","2.3.38"]'
|
||||
|
|
|
@ -1 +1 @@
|
|||
4
|
||||
0
|
|
@ -1,4 +1 @@
|
|||
ERROR: 'CSharp' code generator does not support code generation to a single file.
|
||||
ERROR: 'CSharp' code generator does not support code generation to a single file.
|
||||
ERROR: 'CSharp' code generator does not support code generation to a single file.
|
||||
ERROR: 'CSharp' code generator does not support code generation to a single file.
|
||||
|
||||
|
|
|
@ -10,29 +10,40 @@
|
|||
text-align: center;
|
||||
}
|
||||
h1, h2 {
|
||||
font-weight: regular;
|
||||
font-weight: normal;
|
||||
}
|
||||
table {
|
||||
display: inline-block;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
th {
|
||||
color: #aaa;
|
||||
}
|
||||
th, td {
|
||||
font-weight: normal;
|
||||
/* font-style: italic; */
|
||||
padding: 4px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: blue;
|
||||
}
|
||||
|
||||
.loading {
|
||||
display: inline-block;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
height: 10px;
|
||||
width: 10px;
|
||||
background: gray;
|
||||
animation: loading 1s infinite ease-in-out;
|
||||
animation: loading 1s infinite linear;
|
||||
}
|
||||
|
||||
@keyframes loading {
|
||||
0% {
|
||||
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
|
||||
}
|
||||
50% {
|
||||
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
|
||||
transform: rotate(359.9deg);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,12 +51,13 @@
|
|||
display: none;
|
||||
}
|
||||
details[open] tr.optional {
|
||||
display: initial;
|
||||
display: table-row;
|
||||
}
|
||||
</style>
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
||||
<script>
|
||||
const httpGet = (url, type) => new Promise((res, rej) => $.get(url, res, type).fail(rej));
|
||||
const delay = ms => new Promise(res => setTimeout(res, ms));
|
||||
|
||||
const azureBlobContainer_coverage = "https://autorestci1.blob.core.windows.net/autorest-ci-coverage-report";
|
||||
const coverageCategories = ["General", "Azure"];
|
||||
|
@ -66,6 +78,7 @@
|
|||
async function deferredUI(targetUI, operation) {
|
||||
targetUI.empty();
|
||||
targetUI.append($("<span class='loading' />"));
|
||||
// await delay(500);
|
||||
const resultUI = await operation();
|
||||
targetUI.empty();
|
||||
targetUI.append(resultUI);
|
||||
|
@ -97,12 +110,19 @@
|
|||
section.append($("<br>"));
|
||||
table.append($("<tr>")
|
||||
.append($("<th>").text("Version"))
|
||||
.append($("<th>").text("Feature Set"))
|
||||
.append(coverageCategories.map(cat => $("<th>").text(cat))));
|
||||
|
||||
const versions = reportsByRepo[repo].sort((a, b) => semverCompare(a.version, b.version)).reverse();
|
||||
let subsequent = false;
|
||||
for (const version of versions) {
|
||||
const request = httpGet(version.uri, "text");
|
||||
const featureSetVersion = $("<td>");
|
||||
deferredUI(featureSetVersion, async () => {
|
||||
const response = await request;
|
||||
const coverage = / (\d+\.\d+\.\d+)/.exec(response.split("\n").filter(l => l.includes("feature set version"))[0])[1];
|
||||
return coverage;
|
||||
});
|
||||
const coverages = coverageCategories.map(cat => {
|
||||
const cell = $("<td>");
|
||||
deferredUI(cell, async () => {
|
||||
|
@ -114,7 +134,8 @@
|
|||
});
|
||||
table.append($("<tr>")
|
||||
.addClass(subsequent ? "optional" : "")
|
||||
.append($("<td>").append($("<a>").attr("href", version.uri).text(version.version)))
|
||||
.append($("<td>").append($("<a>").attr("href", version.uri).attr("target", "_blank").text(version.version)))
|
||||
.append(featureSetVersion)
|
||||
.append(coverages));
|
||||
subsequent = true;
|
||||
}
|
||||
|
|
|
@ -16,42 +16,42 @@ openapi-type: arm
|
|||
|
||||
``` yaml $(azureresourceschema)
|
||||
use-extension:
|
||||
"@microsoft.azure/autorest.azureresourceschema": "~2.0.0"
|
||||
"@microsoft.azure/autorest.azureresourceschema": "~2.0.14"
|
||||
```
|
||||
|
||||
``` yaml $(csharp)
|
||||
use-extension:
|
||||
"@microsoft.azure/autorest.csharp": "~2.2.0"
|
||||
"@microsoft.azure/autorest.csharp": "~2.2.45"
|
||||
```
|
||||
|
||||
``` yaml $(jsonrpcclient)
|
||||
use-extension:
|
||||
"@microsoft.azure/autorest.csharp": "~2.2.0"
|
||||
"@microsoft.azure/autorest.csharp": "~2.2.45"
|
||||
```
|
||||
|
||||
``` yaml $(go)
|
||||
use-extension:
|
||||
"@microsoft.azure/autorest.go": "~2.0.0"
|
||||
"@microsoft.azure/autorest.go": "~2.1.47"
|
||||
```
|
||||
|
||||
``` yaml $(java)
|
||||
use-extension:
|
||||
"@microsoft.azure/autorest.java": "~2.0.0"
|
||||
"@microsoft.azure/autorest.java": "~2.1.32"
|
||||
```
|
||||
|
||||
``` yaml $(nodejs)
|
||||
use-extension:
|
||||
"@microsoft.azure/autorest.nodejs": "~2.0.0"
|
||||
"@microsoft.azure/autorest.nodejs": "~2.1.25"
|
||||
```
|
||||
|
||||
``` yaml $(php)
|
||||
use-extension:
|
||||
"@microsoft.azure/autorest.php": "~2.0.0"
|
||||
"@microsoft.azure/autorest.php": "~2.0.12"
|
||||
```
|
||||
|
||||
``` yaml $(python)
|
||||
use-extension:
|
||||
"@microsoft.azure/autorest.python": "~2.0.0"
|
||||
"@microsoft.azure/autorest.python": "~2.1.26"
|
||||
```
|
||||
|
||||
``` yaml $(ruby)
|
||||
|
@ -59,17 +59,17 @@ use-extension:
|
|||
"@microsoft.azure/autorest.ruby": "~2.0.0"
|
||||
```
|
||||
|
||||
``` yaml $(typescript)
|
||||
use-extension:
|
||||
"@microsoft.azure/autorest.typescript": "~2.0.12"
|
||||
```
|
||||
|
||||
``` yaml $(azure-validator)
|
||||
use-extension:
|
||||
"@microsoft.azure/classic-openapi-validator": "~1.0.3"
|
||||
"@microsoft.azure/openapi-validator": "~1.0.0"
|
||||
```
|
||||
|
||||
``` yaml $(typescript)
|
||||
use-extension:
|
||||
"@microsoft.azure/autorest.typescript": "~2.0.0"
|
||||
```
|
||||
|
||||
``` yaml $(model-validator)
|
||||
use-extension:
|
||||
"oav": "~0.4.14"
|
||||
|
|
Загрузка…
Ссылка в новой задаче