No cloning azure-rest-api-specs
This commit is contained in:
Родитель
f18f345781
Коммит
374d5c2eaa
|
@ -3,8 +3,6 @@ param([string] $project = $env:TEST_PROJECT, [string]$lang = $env:TEST_LANG)
|
|||
Import-Module ".\lib.psm1"
|
||||
Import-Module ".\_\tools\autogenForSwaggers\lib.psm1"
|
||||
|
||||
$current = (Get-Location)
|
||||
|
||||
"Building..."
|
||||
|
||||
.\common.ps1
|
||||
|
@ -13,11 +11,8 @@ if (-Not $?)
|
|||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
UpdateSdkInfo -specs $specs -sdkDir "_"
|
||||
|
||||
.\lang.ps1 -script "build" -lang $lang
|
||||
|
||||
$langInfo = Get-LangInfo -lang $lang
|
||||
|
||||
$specs = Join-Path $current "azure-rest-api-specs"
|
||||
GenerateAndBuild -project $project -specs $specs -sdkDir "_" -jsonRpc $langInfo.jsonRpc
|
||||
GenerateAndBuild -project $project -specs "https://github.com/Azure/azure-rest-api-specs" -sdkDir "_" -jsonRpc $langInfo.jsonRpc
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
.\go\common.ps1
|
||||
|
||||
$current = pwd
|
||||
$current = Get-Location
|
||||
|
||||
"Downloading azure-sdk-for-go..."
|
||||
$azureSdkPath = Join-Path $env:GOPATHSRC "github.com\Azure\azure-sdk-for-go"
|
||||
|
@ -8,10 +8,10 @@ git clone -q --branch=master https://github.com/sergey-shandar/azure-sdk-for-go
|
|||
# go get github.com/Azure/azure-sdk-for-go
|
||||
|
||||
"Installing azure-sdk-for-go..."
|
||||
cd $azureSdkPath
|
||||
Set-Location $azureSdkPath
|
||||
$glide = Join-Path $env:GOPATH "bin\glide"
|
||||
& $glide install
|
||||
cd $current
|
||||
Set-Location $current
|
||||
|
||||
$gen = Join-Path $azureSdkPath "gododir\gen.go"
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
.\common.ps1
|
||||
|
||||
$env:GOROOT = Join-Path $env:TEST_COMMON "go"
|
||||
$env:GOPATH = Join-Path $env:TEST_COMMON "gosrc"
|
||||
$env:Path = (Join-Path $env:GOROOT "bin") + ";" + $env:Path
|
||||
|
|
8
init.ps1
8
init.ps1
|
@ -5,14 +5,6 @@ $branch = if ($branch) { $branch } else { "master" }
|
|||
|
||||
Import-Module ".\lib.psm1"
|
||||
|
||||
"Cloning azure-rest-api-specs..."
|
||||
Remove-All -path azure-rest-api-specs
|
||||
|
||||
$testRep = "https://github.com/$fork/azure-rest-api-specs"
|
||||
"Azure REST API Specs repository: $testRep"
|
||||
"Azure REST API Specs branch: $branch"
|
||||
git clone -q --branch=$branch $testRep azure-rest-api-specs
|
||||
|
||||
"Cloning azure-sdk-for-net..."
|
||||
# $sdkFork = "Azure"
|
||||
$sdkFork = "sergey-shandar"
|
||||
|
|
Загрузка…
Ссылка в новой задаче