1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-07 20:17:05 +00:00

a good start of making the ./_benchmarks benchmarker works autonomous by installing dependencies, running them and finally save them on disk as markdown files

Former-commit-id: 685b296f62c63f98455dce36ce52989be772ba34
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-06-23 05:53:49 +03:00
parent 076d9121f1
commit aee3c489ed
7 changed files with 1848 additions and 13 deletions

View File

@@ -0,0 +1,24 @@
// +build windows
package main
func powershell(script string, args ...string) error {
return (&platform{"powershell"}).attach(append([]string{script}, args...)...)
}
func installDotnet(b bundle) error {
// Note: -Channel Preview is not available with the "latest" version, so we target a specific version;
// it's also required to do that because a lot of times the project .csproj settings are changing from version to version.
//
// Issue:
// cannot be loaded because running scripts is disabled on this system
// Solution with administrator privileges:
// Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
//
// Issue: ./scripts/dotnet-install.ps1 : AuthorizationManager check failed.
// Solution (not work):
// Unblock-File + script
// Solution (requires manual action):
// Right click on the ./scripts/dotnet-install.ps1 and check the "unblock" property, save and exit the dialog.
return powershell("./scripts/dotnet-install.ps1", b.parseArguments()...)
}