forked from dotnet/wcf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating .sh files and other changes.
* Synced or added .sh files including'run-test.sh' even though we don't currently use it, we may need to at some point. * .sh files not tested on Linux. * Added the publish-packages files but did not test them. * Pulled in a few more changes to various files from PRs in corefx occuring within the last 24 hrs.
- Loading branch information
1 parent
5aea308
commit aef3027
Showing
19 changed files
with
472 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/usr/bin/env bash | ||
|
||
usage() | ||
{ | ||
echo "Builds the NuGet packages from the binaries that were built in the Build product binaries step." | ||
echo "No option parameters." | ||
exit 1 | ||
} | ||
|
||
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
build_packages_log=$working_tree_root/build-packages.log | ||
binclashlog=$working_tree_root/binclash.log | ||
binclashloggerdll=$working_tree_root/Tools/Microsoft.DotNet.Build.Tasks.dll | ||
RuntimeOS=ubuntu.$VERSION_ID | ||
|
||
# Use uname to determine what the OS is. | ||
OSName=$(uname -s) | ||
case $OSName in | ||
Darwin) | ||
# Darwin version can be three sets of digits (e.g. 10.10.3), we want just the first two | ||
DarwinVersion=$(sw_vers -productVersion | awk 'match($0, /[0-9]+\.[0-9]+/) { print substr($0, RSTART, RLENGTH) }') | ||
RuntimeOS=osx.$DarwinVersion | ||
;; | ||
|
||
FreeBSD|NetBSD) | ||
# TODO this doesn't seem correct | ||
RuntimeOS=osx.10.10 | ||
;; | ||
|
||
Linux) | ||
source /etc/os-release | ||
VersionMajor=$(echo $VERSION_ID | awk 'match($0, /[0-9]+/) { print substr($0, RSTART, RLENGTH) }') | ||
if [ "$ID" == "rhel" ]; then | ||
RuntimeOS=rhel.$VersionMajor | ||
elif [ "$ID" == "debian" ]; then | ||
RuntimeOS=debian.$VersionMajor | ||
elif [ "$ID" == "ubuntu" ]; then | ||
RuntimeOS=ubuntu.$VERSION_ID | ||
else | ||
echo "Unsupported Linux distribution '$ID' detected. Configuring as if for Ubuntu." | ||
fi | ||
;; | ||
|
||
*) | ||
echo "Unsupported OS '$OSName' detected. Configuring as if for Ubuntu." | ||
;; | ||
esac | ||
|
||
options="/m /nologo /v:minimal /clp:Summary /flp:v=diagnostic;Append;LogFile=$build_packages_log /l:BinClashLogger,$binclashloggerdll;LogFile=$binclashlog /p:FilterToOSGroup=$RuntimeOS" | ||
allargs="$@" | ||
|
||
echo -e "Running build-packages.sh $allargs" > $build_packages_log | ||
|
||
if [ "$allargs" == "-h" ] || [ "$allargs" == "--help" ]; then | ||
usage | ||
fi | ||
|
||
# Ensure that MSBuild is available | ||
echo "Running init-tools.sh" | ||
$working_tree_root/init-tools.sh | ||
|
||
echo -e "\n$working_tree_root/Tools/corerun $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/packages.builds $options $allargs" >> $build_packages_log | ||
$working_tree_root/Tools/corerun $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/packages.builds $options $allargs | ||
|
||
|
||
if [ $? -ne 0 ]; then | ||
echo -e "\nAn error occurred. Aborting build-packages.sh ." >> $build_packages_log | ||
echo "ERROR: An error occurred while building packages, see $build_packages_log for more details." | ||
exit 1 | ||
fi | ||
|
||
echo "Done building packages." | ||
echo -e "\nDone building packages." >> $build_packages_log | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
|
||
usage() | ||
{ | ||
echo "Builds the tests that are in the repository." | ||
echo "No option parameters." | ||
exit 1 | ||
} | ||
|
||
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
build_tests_log=$working_tree_root/build-tests.log | ||
binclashlog=$working_tree_root/binclash.log | ||
binclashloggerdll=$working_tree_root/Tools/Microsoft.DotNet.Build.Tasks.dll | ||
|
||
options="/m /nologo /v:minimal /clp:Summary /flp:v=detailed;Append;LogFile=$build_tests_log /l:BinClashLogger,$binclashloggerdll;LogFile=$binclashlog" | ||
allargs="$@" | ||
|
||
echo -e "Running build-tests.sh $allargs" > $build_tests_log | ||
|
||
if [ "$allargs" == "-h" ] || [ "$allargs" == "--help" ]; then | ||
usage | ||
fi | ||
|
||
# Ensure that MSBuild is available | ||
echo "Running init-tools.sh" | ||
$working_tree_root/init-tools.sh | ||
|
||
echo -e "\n$working_tree_root/Tools/corerun $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/tests.builds $options $allargs" >> $build_tests_log | ||
$working_tree_root/Tools/corerun $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/tests.builds $options $allargs | ||
|
||
|
||
if [ $? -ne 0 ]; then | ||
echo -e "\nAn error occurred. Aborting build-tests.sh ." >> $build_tests_log | ||
echo "ERROR: An error occurred while building tests, see $build_tests_log for more details." | ||
exit 1 | ||
fi | ||
|
||
echo "Done building tests." | ||
echo -e "\nDone building tests." >> $build_tests_log | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"projects": [ "./src", "./src/Common" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ case $OSName in | |
Darwin) | ||
OS=OSX | ||
__DOTNET_PKG=dotnet-dev-osx-x64 | ||
ulimit -n 2048 | ||
;; | ||
|
||
Linux) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@if "%_echo%" neq "on" echo off | ||
setlocal EnableDelayedExpansion | ||
|
||
set packagesLog=publish-packages.log | ||
echo Running publish-packages.cmd %* > %packagesLog% | ||
|
||
set options=/nologo /v:minimal /flp:v=detailed;Append;LogFile=%packagesLog% | ||
set allargs=%* | ||
|
||
if /I [%1] == [/?] goto Usage | ||
if /I [%1] == [/help] goto Usage | ||
|
||
REM ensure that msbuild is available | ||
echo Running init-tools.cmd | ||
call %~dp0init-tools.cmd | ||
|
||
echo msbuild.exe %~dp0src\publish.builds !options! !allargs! >> %packagesLog% | ||
call msbuild.exe %~dp0src\publish.builds !options! !allargs! | ||
if NOT [%ERRORLEVEL%]==[0] ( | ||
echo ERROR: An error occurred while publishing packages, see %packagesLog% for more details. | ||
exit /b | ||
) | ||
|
||
echo Done publishing packages. | ||
exit /b | ||
|
||
:Usage | ||
echo. | ||
echo Publishes the NuGet packages to the specified location. | ||
echo For publishing to Azure the following properties are required. | ||
echo /p:CloudDropAccountName="account name" | ||
echo /p:CloudDropAccessToken="access token" | ||
exit /b |
Oops, something went wrong.