diff --git a/scripts/UpdateDependencyVersions.ps1 b/scripts/UpdateDependencyVersions.ps1 index f8e2b3f..69d92ff 100755 --- a/scripts/UpdateDependencyVersions.ps1 +++ b/scripts/UpdateDependencyVersions.ps1 @@ -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 = @(), diff --git a/test.ps1 b/test.ps1 old mode 100644 new mode 100755 index 208df6f..1404376 --- a/test.ps1 +++ b/test.ps1 @@ -1,4 +1,3 @@ -#!/usr/bin/env powershell #requires -version 4 [CmdletBinding(PositionalBinding = $true)] param( diff --git a/test.sh b/test.sh index 5a085a8..66d287c 100755 --- a/test.sh +++ b/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 \