Skip to content

Commit

Permalink
Update test.sh
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Nate McMaster committed Dec 27, 2017
1 parent 3714ec2 commit 3ef9186
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions test.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
#!/usr/bin/env bash

local command=$1
local repo_path=$2
set -euo pipefail

command=$1
repo_path=$2
no_build=false
msbuild_args=()

shift 2

./build.sh /t:PackageKoreBuild
while [[ $# -gt 0 ]]; do
case $1 in
--no-build|-NoBuild)
no_build=true
;;
*)
msbuild_args[${#msbuild_args[*]}]="$1"
;;
esac
shift
done

if [ "$no_build" = false ]; then
./build.sh /t:Package
fi

./scripts/bootstrapper/run.sh -Command "$command" -Path "$repo_path" -s ./artifacts/ -u "$@"
./scripts/bootstrapper/run.sh \
"$command" \
-Path "$repo_path" \
-ToolsSource ./artifacts/ \
-Update \
-Reinstall \
${msbuild_args[@]+"${msbuild_args[@]}"}

0 comments on commit 3ef9186

Please sign in to comment.