This repository was archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathBuildCliComponents.sh
More file actions
executable file
·58 lines (47 loc) · 1.51 KB
/
BuildCliComponents.sh
File metadata and controls
executable file
·58 lines (47 loc) · 1.51 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
######################################################################
# Build the components of xunit.performance that support build via the
# Dotnet CLI.
#
# This script will bootstrap the latest version of the CLI into the
# tools directory prior to build.
######################################################################
######################################
## FOR DEBUGGING ONLY
######################################
# set -x
declare currentDir=`pwd`
declare dotnetVersion=`cat DotNetCliVersion.txt`
declare outputDirectory=${currentDir}/LocalPackages
declare dotnetPath=${currentDir}/tools/dotnet/${dotnetVersion}
declare dotnetCmd=${dotnetPath}/dotnet
declare dotnetInstallerUrl=https://raw.githubusercontent.com/dotnet/cli/v${dotnetVersion}/scripts/obtain/dotnet-install.sh
declare dotnetInstallerScript=${dotnetPath}/dotnet-install.sh
if ! [ -f $dotnetCmd ]
then
echo Installing Dotnet CLI
if ! [ -f $dotnetPath ]
then
mkdir -p $dotnetPath
fi
curl $dotnetInstallerUrl -o $dotnetInstallerScript
chmod +x $dotnetInstallerScript
$dotnetInstallerScript --version $dotnetVersion --install-dir $dotnetPath --no-path
fi
if ! [ -f $dotnetCmd ]
then
echo Unable to install Dotnet CLI. Exiting.
exit -1
fi
declare buildConfiguration=$1
if [ "$buildConfiguration" == "" ]
then
buildConfiguration="debug"
fi
declare versionSuffix=$2
if [ "$versionSuffix" == "" ]
then
versionSuffix="beta-build0000"
fi
# TODO: Update groovy file and this file.
echo Build complete