This commit is contained in:
Nate McMaster 2018-02-12 09:05:17 -08:00
Родитель 16d1618429
Коммит b1a7fb918b
3 изменённых файлов: 19 добавлений и 7 удалений

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/env powershell
#!/usr/bin/env pwsh
#requires -version 4
<#
@ -8,6 +8,8 @@ to know the internal details of how config files are layed out in this repo.
#>
[cmdletbinding(SupportsShouldProcess = $true, PositionalBinding = $false)]
param(
[Parameter()]
[Alias("sdk")]
[string]$DotNetSdkVersion = $null,
[string]$DotNetRuntimeVersion = $null,
[string[]]$GitCommitArgs = @(),

1
test.ps1 Normal file → Executable file
Просмотреть файл

@ -1,4 +1,3 @@
#!/usr/bin/env powershell
#requires -version 4
[CmdletBinding(PositionalBinding = $true)]
param(

21
test.sh
Просмотреть файл

@ -2,18 +2,24 @@
set -euo pipefail
command=$1
repo_path=$2
command='default-build'
repo_path=''
no_build=false
msbuild_args=()
shift 2
while [[ $# -gt 0 ]]; do
case $1 in
--no-build|-NoBuild)
no_build=true
;;
-r|--repo-path|-RepoPath)
shift
repo_path="$1"
;;
-c|--command|-Command)
shift
command="$1"
;;
*)
msbuild_args[${#msbuild_args[*]}]="$1"
;;
@ -21,8 +27,13 @@ while [[ $# -gt 0 ]]; do
shift
done
if [ -z "$repo_path" ]; then
echo "Missing required value for --repo-path"
exit 1
fi
if [ "$no_build" = false ]; then
./build.sh /t:Package
./build.sh /p:SkipTests=true
fi
./scripts/bootstrapper/run.sh \