-
Notifications
You must be signed in to change notification settings - Fork 40
/
test.sh
executable file
·45 lines (39 loc) · 849 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
set -euo pipefail
command='default-build'
repo_path=''
no_build=false
msbuild_args=()
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"
;;
esac
shift
done
if [ -z "$repo_path" ]; then
echo "Missing required value for --repo-path"
exit 1
fi
if [ "$no_build" = false ]; then
./build.sh /p:SkipTests=true
fi
./scripts/bootstrapper/run.sh \
"$command" \
-Path "$repo_path" \
-ToolsSource ./artifacts/ \
-Update \
-Reinstall \
${msbuild_args[@]+"${msbuild_args[@]}"}