Commit graph

377 commits

Author SHA1 Message Date
piotrp
a66546d8fb Maintain test artifacts
Improved test diagnostics
Providing diagnostics about failed process.
Workaround for https://github.com/NuGet/Home/issues/1977
get past crossgen errors!
2016-01-26 23:25:39 -08:00
Andrew Stanton-Nurse
066bebcc6c bootstrap using nuget instead of dnx 2016-01-26 23:25:37 -08:00
Bryan Thornbury
ed5538292e Changes to restore CentOS properly in arg forwarding test. 2016-01-23 15:00:04 -08:00
Bryan
4c41c9699c Last necessary test changes
Fix the refactoring bugs

fix restore

downgrade version of package command test

Linux Test Script Fixes

use corehost instead of corerun for arg testing

don't copy corehost

fix scripts

Account for change in publish path, use corerun. Issue with AppContext.BaseDirectory in corehost.

Case Sensitive Reflector

wait for process exit

Fix bug in runtests.ps1

fix release build output path

fixup bug in runtests.sh
2016-01-23 14:32:50 -08:00
Bryan
c727c513dc Native fixes
project.json cleanup

Cleanup and Code Review Feedback
2016-01-23 13:01:36 -08:00
Bryan
fce9666f37 Argument Forwarding Test Infrastructure 2016-01-23 13:01:29 -08:00
piotrp
c8a11ce63c Remove --no-cache from scripts
--no-cache is not supported by NuGet v3
2016-01-23 09:53:51 -08:00
Livar Cunha
91fcb62611 Introducing a separate script that initializes the projects that are going to be packaged, so that it can be shared between build and pack. 2016-01-22 23:08:49 -08:00
Livar Cunha
e3a8dacc8e Building the projects that are going to be packaged separately so that they build for all the Tfms. The package step will then pick it up and package all the correct Tfms as well. 2016-01-22 23:08:49 -08:00
Livar Cunha
fdea0b87e0 Making some of the testbase methods protected.
Renaming variables according to code review comments. Adding the folder logic to the builder tests. Creating a separate compilation folder during the build.
2016-01-22 15:22:45 -08:00
Livar Cunha
b1bce2b50a Making the multi project validator compile for the passed configuration to make the scripts work for release as well. Also fixed the variable assignment in the .sh script. 2016-01-22 15:22:44 -08:00
Livar Cunha
0c3751cd37 Modify the bash scripts to handle the new folder structure 2016-01-22 15:22:44 -08:00
Livar Cunha
ac2d0e36a9 Changing multiple dotnet commands to be aware of $configuration/$tfm folder structure under the --output path option.
Changing the build scripts to copy files over from debug\dnxcore and to check for the folders existence before trying that.
Making the build command aware of the subfolders and making E2E tests aware of subfolders.
Fixing compiler tests to look for the xml in the right plae taking into consideration the configuration and tfm.
Modifying publish tests to not take into consideration the runtime. This is a temporary change. will bring it back once the commands all understand rid.
Making the packaging step work by placing binaries where dotnet pack expects.
2016-01-22 15:22:44 -08:00
Piotr Puszkiewicz
14f665eb30 Merge pull request #930 from cdmihai/cdmihai/buildCommandTestingReleasePR
Release PR: Incremental build tests and improvements
2016-01-21 12:31:25 -08:00
Sridhar Periyasamy
137336d0d0 Download the stage0 dotnet tools from the beta feed for unix.
Set the correct channel so that the stage0 binaries are downloaded
correctly.

** This commit cannot be directly merged from the release branch to the
master branch **
2016-01-20 19:08:00 -08:00
Sridhar Periyasamy
a8aea60f14 Download the stage0 dotnet tools from the beta feed for windows.
Set the correct channel so that the stage0 binaries are downloaded
correctly.

** This commit cannot be directly merged from the release branch to the
master branch **
2016-01-20 19:00:06 -08:00
Mihai Codoban
3a8ef0f5e9 Add Tests for incrementality 2016-01-20 16:07:12 -08:00
Bryan Thornbury
63190c5cc0 Use Release Suffix instead of CHANNEL for determining last deb packge 2016-01-20 20:07:40 +00:00
PiotrP
36f69060d1 Set 1.0.0 version numbers 2016-01-19 19:06:41 -08:00
Andrew Stanton-Nurse
3d493f7d9d switch from DNX to cross-plat NuGet! 2016-01-19 11:43:09 -08:00
Sridhar Periyasamy
93f41e0b69 Build "Microsoft.DotNet.ProjectModel.Workspaces" so that it can be
packaged later as nupkg

Fixes - #797
2016-01-15 11:31:53 -08:00
schellap
b4b482006b Fix host name, debuggability and embed CRT 2016-01-14 12:06:18 -08:00
Sridhar Periyasamy
f2ac0d341b Merge pull request #836 from Sridhar-MS/msi-upgrade
Enable build-to-build major upgrades for MSI.
2016-01-14 11:36:03 -08:00
Andrew Stanton-Nurse
845f2c56e6 let RID detection do its thing
also:
* fix up pjvalidate to handle versionless deps
* fix up package-command-test
2016-01-14 09:06:13 -08:00
Bryan Thornbury
60f5fce3fb Merge pull request #821 from brthor/debian_upgrade_test
Enable Debian package upgrade tests.
2016-01-13 16:07:28 -08:00
Sridhar Periyasamy
1308e27a74 Enable build-to-build major upgrades for MSI.
Encode the CLI version into MSI supported ProductVersion documented here -
https://msdn.microsoft.com/en-us/library/windows/desktop/aa370859(v=vs.85).aspx
Example: CLI Version - 1.0.0.000930 is encoded in MSI as 4.0.930

Prevent downgrading by failing installation with error message.
Also display the original CLI version in the ProductName.
2016-01-13 15:48:45 -08:00
Livar
2417f50f8d Merge pull request #818 from livarcocc/file_descriptor_limit
Fixes the file descriptor issue during restore on OSX
2016-01-13 15:05:52 -08:00
Bryan Thornbury
bfde94528c Enable Debian package upgrade tests. 2016-01-13 14:34:12 -08:00
Livar Cunha
9994b6b8dd Increases the number of file descriptors available to the process in order to hit a issue when doing restore where we were running out of file descriptors during the build. 2016-01-13 13:40:25 -08:00
Bryan Thornbury
cc0767c7f4 Merge pull request #820 from brthor/package_tool_cmd_options
Versioning Changes
2016-01-13 13:15:26 -08:00
Pavel Krymets
2456d83008 Switch dependency context back to dotnet5.4 2016-01-13 10:56:57 -08:00
Bryan
7011f9e604 update everything to DOTNET_CLI_VERSION
Some package_tool fixes
2016-01-13 02:22:53 -08:00
Krzysztof Wicher
f88c9a88f2 use commit count as revision number 2016-01-13 02:22:48 -08:00
Bryan
797e436547 Package Tool Changes to support versioning changes.
1. Support CONFLICTS in debian packages
2. Associated Build Changes
3. Better cmd line option support in package_tool
2016-01-13 02:22:47 -08:00
Piotr Puszkiewicz
1e423d4f1b Merge pull request #798 from piotrpMSFT/piotrpMSFT/issue797/emptyNuget
Fix empty NuGets
2016-01-13 00:32:02 -08:00
Livar
61f837d711 Merge pull request #816 from livarcocc/authenticode
Adjusting build.ps1 to work in VSO with the -NoPackage flag
2016-01-12 17:50:29 -08:00
piotrp
ce34927dfb Fixes issue #797
Builds all to-be-packaged assemblies, fixes packaging script.
2016-01-12 14:32:51 -08:00
Livar Cunha
7dc2fa20a5 Adding an explicit exit 0 when NoPackage is used so that VSO knows it succeeded.
Also added a package.cmd to be used by VSO as well.
2016-01-12 14:29:00 -08:00
Mihai Codoban
cbe90c3f9d Update *nix scripts to make CLI selfhost incremental 2016-01-12 13:29:41 -08:00
Mihai Codoban
84da50f00f Update windows scripts to make CLI selfhost incremental 2016-01-12 13:29:41 -08:00
schellap
907cf00654 Split corehost into serviceable DLL and EXE 2016-01-11 18:06:18 -08:00
piotrp
ac0dc9a666 Create test packages directory 2016-01-11 00:16:10 -08:00
piotrp
9a615ff242 Workaround for issue #773 2016-01-10 21:53:42 -08:00
Piotr Puszkiewicz
d1fba98348 Fix test scripts for bash 2016-01-10 12:53:16 -08:00
piotrp
096b7d21dc Fixing test script issues and addressing RID detection change 2016-01-09 18:04:13 -08:00
piotrp
5cd64066c4 Packaged Commands 2016-01-09 16:50:31 -08:00
Sridhar Periyasamy
a447ec6751 Merge pull request #756 from Sridhar-MS/centos-docker
Enable docker support for centos builds
2016-01-08 15:47:31 -08:00
Andrew Stanton-Nurse
78cef18e1c add support for generating xml documentation
fixes #312
2016-01-08 14:02:41 -08:00
Sridhar Periyasamy
08f960b03d Address PR feedback. 2016-01-08 11:28:38 -08:00
Sridhar Periyasamy
3c53e26d59 Merge branch 'centos-docker' of https://github.com/sridhar-ms/cli into centos-docker
Conflicts:
	scripts/build/build.ps1
2016-01-08 11:28:22 -08:00
Sridhar Periyasamy
7fe96d56c3 Merge branch 'master' of https://github.com/dotnet/cli into centos-docker
Conflicts:
	scripts/build/build.sh
2016-01-08 10:59:31 -08:00
Sridhar Periyasamy
6128373f0b Separate building and packaging scripts for Windows
Add 'nopackage' option similar to unix scripts
2016-01-08 10:45:20 -08:00
Andrew Stanton-Nurse
f4df12f2e2 add proper RID detection based on PlatformAbstractions 2016-01-08 10:07:58 -08:00
Sridhar Periyasamy
5155aa61d7 Enable docker support for centos builds
- Added an option '--buildindocker <osname>' to build.sh
- Fixed bug which caused packaging to be skipped by default.
- Fixed bug which caused tarballs to be generated twice.
- Fixed bug to propagate build params(like debug, nopackage) to docker build.
2016-01-07 18:50:00 -08:00
Senthil
697debb5d4 Merge pull request #681 from schellap/refac
Refactor and build library for corehost
2016-01-07 02:58:23 -08:00
Krzysztof Wicher
8d6e548ada Merge pull request #741 from krwq/fix_nupkg
fix producing nuget packages during the build
2016-01-06 22:09:13 -08:00
Senthil
b11ac0160f Refactoring for corehost servicing 2016-01-06 18:15:41 -08:00
Krzysztof Wicher
4d455ad230 fix producing nuget packages during the build 2016-01-06 17:27:44 -08:00
Bryan
17176edb80 Remove StreamForwarder Tests from E2E 2016-01-06 15:30:56 -08:00
piotrp
08dd628172 create dotnet-restore.exe 2016-01-06 01:46:10 -08:00
Piotr Puszkiewicz
6b1e11a1c9 Merge pull request #722 from Sridhar-MS/centos-tests
Enable running tests for CentOS
2016-01-06 01:14:04 -08:00
Sridhar Periyasamy
2ebb28819e Enable running tests for CentOS
CentOS tests were blocked due to issue https://github.com/dotnet/corefx/issues/5066.
It has been fixed with the latest NetStandardLibrary, hence upgrading from 1.0.0-rc2-23616 to 1.0.0-rc2-23704.
With this fix the native shims are correctly restored by dnx for RID centos.7-x64.
2016-01-05 18:11:38 -08:00
Bryan
6f2002b896 Enable visual xunit results.
Fixup xml test results name
2016-01-05 15:54:50 -08:00
Bryan Thornbury
697e99ea6e Merge pull request #675 from brthor/native_subdirectory_support
Use subdirectories in publish for native
2016-01-05 11:55:58 -08:00
piotrp
9071d1f40f --quiet flag 2016-01-05 01:42:16 -08:00
piotrp
570cda0bad fix syntax 2016-01-05 00:57:21 -08:00
piotrp
b980f061d5 Allow NuGet cache for non-CI builds 2016-01-05 00:37:23 -08:00
piotrp
f4b31b80d9 Fix comment 2016-01-04 19:32:10 -08:00
piotrp
ef4f62c87d Enable crossgen of Stage 1 compiler
Eliminate differences between compiling stage 1 and stage 2 to reduce complexity
2016-01-04 19:32:09 -08:00
Troy Dai
20205c4f02 Save dotnet-projectmodel-server.exe to output 2016-01-04 17:48:34 -08:00
Bryan
89de0c2172 Use --native-subdirectory when publishing cli projects.
This gives support for files to publish in subdirectories
from dependency nuget packages.

Additionally Change Native Compilation to consume these paths.
2016-01-04 14:42:49 -08:00
Bryan Thornbury
7ddbb5d5e3 Source Common in check-prereqs.sh
Fixes #671
2015-12-30 10:34:00 -08:00
Piotr Puszkiewicz
63abe9ce1d Merge pull request #661 from blackdwarf/manpages
Add manual pages for current commands
2015-12-29 23:08:51 -08:00
Piotr Puszkiewicz
f1587a4c0e Allow two-part OS X version numbers 2015-12-29 20:16:05 -08:00
Bryan
7b89cceed5 Enable copying manpages from documentation folder to package_layout_dir for consumption by package_tool and ultimately inclusion in the debian package 2015-12-29 16:44:46 -08:00
Piotr Puszkiewicz
9df40f9c01 prevent sourced files from leaking unintended state to callers 2015-12-29 12:40:39 -08:00
Piotr Puszkiewicz
e91db7dce1 Eliminate dead code and most relative paths 2015-12-29 02:34:10 -08:00
Piotr Puszkiewicz
4b217db9c0 Clean up build scripts
Decompose into self-contained granular components
Provide reasonable defaults for cross cutting concerns, allowing for independent execution of steps
Start unifying Windows/Bash architecture

fix Bash CI scripts

dockerbuild.sh _common.sh path

Add missing restore-packages.sh

Copy/paste issues

Quote $SOURCE
fix .gitignore

PR Feedback

Merge in @SridarMS's work to avoid redownloading DNX

enabling build of dotnet-build

merge in @SridharMS's CentOS changes

Enable building FSC

enable restoring specific subdirectories

Fix dnx version check

Add missed dependency

Fix pathing to tests

Match Linux build version to Windows, fixing linux tests as a side effect.

workaround for coreclr#2215

fix pathing issue

disable building in docker

BUILD_IN_DOCKER was set, somehow...

fix headers
2015-12-29 01:59:02 -08:00
Piotr Puszkiewicz
d1a257bff7 Merge pull request #625 from cdmihai/buildCommandWithSafetyChecks
Introduce --build-profile flag and precondition checking in the Build command
2015-12-28 10:46:27 -08:00
Troy Dai
935cd4e281 Add ProjectModel server 2015-12-25 13:23:29 -08:00
Piotr Puszkiewicz
27794b89ae Merge pull request #538 from enricosada/add_fsc_compiler
Add F# ( command dotnet-compile-fsc )

CentOS checks are still experimental, so ignoring.
2015-12-24 23:01:14 -08:00
Sridhar Periyasamy
3bf39fcf1f Update ci_build.sh
Do not package inside docker container for centos.
2015-12-24 21:38:45 -08:00
Enrico Sada
d52bc92155 add command dotnet-compile-fsc
used with "compilerName": "fsc" in project.json
2015-12-24 11:26:09 +01:00
Mihai Codoban
110b30ccdc Extract build from compile
Build becomes the new compile. It decides which project to compile and how. It checks for incremental preconditions
Compile's resonsibility is trimmed down to only knowing how to invoke the compiler on a project
2015-12-23 17:31:47 -08:00
Sridhar Periyasamy
3363707704 Merge branch 'master' of https://github.com/dotnet/cli into centos-builds
Conflicts:
	scripts/compile.sh
	scripts/test/smoke-test.sh
2015-12-23 16:22:59 -08:00
Sridhar Periyasamy
3a2b87a92d Fix to not download Dnx always during a build. 2015-12-18 17:04:29 -08:00
Sridhar Periyasamy
3395b43bd9 Merge pull request #508 from Sridhar-MS/publish-tests2
Dotnet publish tests
2015-12-18 15:36:29 -08:00
Piotr Puszkiewicz
f17a2dbb93 Merge pull request #544 from piotrpMSFT/piotrpMSFT/260/offlineBuilds
Offline builds. Fixes #260.

On Windows, build.cmd -Offline
@brthor is adding a parameter option for Linux/Mac
2015-12-18 14:50:37 -08:00
piotrp
0bcc899ce3 Make default Online 2015-12-18 12:48:37 -08:00
Sridhar Periyasamy
1db27b7ae3 Enable building dotnet-CLI for centos.
I had to patch up a redhat dnx package which supports NETStandard.Library package. It is currently uploaded to dotnet-cli blob storage. This hack will no longer be required when we move to xplat nuget to do 'dotnet restore'. Apart from this there are three issues that are tracked for centos.
- compile-native not yet supported - https://github.com/dotnet/cli/issues/453
- dnu restore crashes intermittently on centos. I need to investigate this a little bit more and file issues on dnx or coreclr. This will make our CI builds very flaky.
- Dotnet restore does not restore native shims when using “centos.7-x64” - https://github.com/dotnet/corefx/issues/5066
2015-12-18 11:32:20 -08:00
Sridhar Periyasamy
b43a1a34a8 Update ci_build.sh
Removing dead code which is no longer used. DOTNET_BUILD_VERSION is set in build.sh.
2015-12-17 18:39:41 -08:00
Sridhar Periyasamy
55b9697b74 Merge branch 'master' of https://github.com/dotnet/cli into publish-tests2 2015-12-17 18:16:33 -08:00
Bryan Thornbury
344d010610 Linux Port of offline build 2015-12-17 18:05:36 -08:00
piotrp
7c722b3fe4 Offline builds on Windows 2015-12-17 18:02:44 -08:00
Sridhar Periyasamy
0b17cc122c Merge pull request #521 from Sridhar-MS/centos-fixes
Scripts changes to accomodate centos builds.
2015-12-17 17:57:43 -08:00
Andrew Stanton-Nurse
1b247311bf fix install script 2015-12-17 11:55:44 -08:00
Bryan Thornbury
3fd3daa51a Merge pull request #487 from brthor/project_validator
Multi Project Validation
2015-12-16 16:47:51 -08:00
Bryan
3b848c0487 Change Output format to match PR feedback
Don't use Environment.Exit()

PR Feedback, Unecessary Usings and Immutable types
2015-12-16 14:12:24 -08:00
Sridhar Periyasamy
6046de8efe Address PR feedback. 2015-12-16 13:04:29 -08:00
Bryan
bfa9710d52 update crossgen scripts to 23616 2015-12-16 11:48:39 -08:00