summaryrefslogtreecommitdiff
path: root/init-tools.sh
AgeCommit message (Collapse)AuthorFilesLines
2016-10-19Support "offline" initializtion of Tools (#7715)Matt Ellis1-43/+66
This change allows init-tools to function in an "offline" mode where tools are picked up from standalone folders. Specifically, it introduces support for two new environment variables: - DOTNET_TOOLSET_DIR - BUILD_TOOLS_TOOLSET_DIR If either is set, instead of downloading toolsets, we copy an already existing one from the folder. The TOOLSET_DIR is a folder with sub directories for every version of the tool in question. For buildtools, we expect a published toolset (sans the "dotnetcli" folder) not just a set of nuget packages (i.e. the layout of Tools/ after running ./init-tools.sh in "online" mode). The above varibles are useful for situations where we want to carry multiple toolsets with us, but are less helpful for places where a developer has produced their own toolset by hand (since the resulting folder structure contains extra version information). For these cases, I've added - DOTNET_TOOL_DIR - BUILD_TOOLS_TOOL_DIR Which work like the above but don't require the nested folder structure.
2016-10-17Allow alpine to run init-tools.shEric Mellino1-0/+3
2016-10-13Update tests to netcoreapp1.1Jan Kotas1-0/+2
2016-09-20Upgrade CLI, buildtools for RTM shared framework. (#7045)Davis Goodin1-47/+67
2016-09-01Revert "Avoid using 'which' for verifying prereqs"Jan Kotas1-7/+7
2016-08-31Avoid using 'which' for verifying prereqs (#6994)Aditya Mandaleeka1-7/+7
* Use hash instead of which in build.sh * Use hash instead of which in init-tools.sh. * Use hash instead of which in gen-buildsys-clang.sh.
2016-07-15Stop chmoding nonexistant corerun file in Tools dirwtgodbe1-1/+0
2016-06-24Fix typo to apply mac build workaround only on OSX (#5988)Ivan Baravy1-1/+1
/init-tools.sh:72 tries to compare strings like this: if [ "$OS"=="OSX" ]; then What it actually does is different to what it looks like: $ echo $OS $ if [ "$OS"=="OSX" ]; then echo EQUAL; fi EQUAL $ if [ "$OS" == "OSX" ]; then echo EQUAL; fi $ This commit fixes the typo and makes OSX workaround run on macs only.
2016-05-31Support building on all supported distrosMatt Ellis1-9/+9
With the updated buildtools, we should now be able to build on all the supported distros: - Centos 7 - Fedora 23 - openSUSE 13.2 - RHEL 7.2 - Ubuntu 14.04 - Ubuntu 16.06 I also cleaned up how we compute the RID for the tools to restore.
2016-05-28Fix RHEL 7 BuildMatt Ellis1-1/+1
There were two issues: - $__BuildArch is not defined in init-tools.sh, so we would always download the ubuntu version of the CLI, since our check for `rhel.7.2-x64` would never fire. - There was a small RHEL specific bug in BuildTools itself that manifested when we actually were able to download the CLI and try to restore the runtime.
2016-05-27Adding commit hash to all built binaries.Jose Perez Rodriguez1-1/+1
2016-05-26Add Fedora, OpenSuse and Ubuntu 16.04 packagesMatt Ellis1-14/+9
- Add packages for Fedora 23 and OpenSuse 13.2 - Move the package authoring for Ubuntu into versioned folders - Update our selection logic for what to produce to be based on an actual RID instead of just a distro name, since that's now not enough with us building for two Ubuntu versions
2016-05-26Add retry logic when downloading the CLI from Azure blob storage.Joel Hendrix1-2/+2
Downloading from Azure can transiently fail for a number of reasons. Add some retry logic when downloading to avoid transient failures. For *nix variants add a retry value when using curl (wget retries by default).
2016-04-01Add mac ulimit -n 2048 workaround and more debug spew in CLI installation ↵Yi Zhang (CLR)1-29/+42
into init-tools.sh
2016-03-30Upgrade dotnet cli version.Davis Goodin1-6/+6
2016-03-22Don't use symbolic link 'sh'(/bin/sh) in ./coreclr/init-tools.shGeunsik Lim1-1/+3
There are a lot of different shells among the Linux distributions. The up-to-date Ubuntu distribution uses /bin/dash without /bin/bash by default. Also, the /bin/sh command has been using as a symbolic link without the original /bin/sh in the some popular Linux distributions such as Ubuntu 14.04. Ver 3: - Don't use 'sh' command thanks to the "#!/usr/bin/env bash" (first line) - /bin/sh of Ubuntu 14.04 is symbolic link. It calls /bin/dash by default. Ver 1: - Let's replace a symbolic 'sh' with 'bash' such as "#!/usr/bin/env bash" declaration (shebang) of ./coreclr/init-tools.sh lgs@u14.04:~$ ls -l `which sh` lrwxrwxrwx 1 root root 4 12 21 17:01 /bin/sh -> dash lgs@u14.04:~$ Signed-off-by: Geunsik Lim geunsik.lim@samsung.com Signed-off-by: MyungJoo Ham myungjoo.ham@samsung.com Signed-off-by: Prajwal A N an.prajwal@samsung.com
2016-03-02Upgrade CLI version and buildtools, and make build file changes.Davis Goodin1-1/+1
Unset CORE_ROOT in environment on Windows before doing restore so that dotnet CLI doesn't try to run using binaries from the test CORE_ROOT. Restore the xunit wrapper projects in a batch rather than individually to save a lot of time. Work around xunit.runner.msbuild not having compatible package layout by ignoring errors and adding import so that a future fix will work. Hard-code C# language for generated wrapper projects: the $(Language) property wasn't set. Also Change www.myget.org to dotnet.myget.org, as we switched to enterprise myget. Add System.ObjectModel to tests\src\JIT\config\benchmark+serialize\project.json to manually upgrade it to a version that doesn't require lifting for runtime. This fixes System.ObjectModel.dll being missing from CORE_ROOT and causing the test to fail. Switch to v3 nuget feeds and sync NuGet.Configs.
2016-02-29Map RHEL distribution to download CentOS CLIGaurav Khanna1-0/+4
2016-02-07Change to support Microsoft.NetCore.Runtime.CoreCLR nuget package generation.Gaurav Khanna (CLR)1-2/+42
2016-01-24Updates based on review commentsJohn Chen1-2/+2
2016-01-23Build mscorlib with CoreCLR MSBuild on LinuxJohn Chen1-0/+68