Commit Graph

260 Commits

Author SHA1 Message Date
Brennan b1c2447073 Update dnvm 2015-10-26 14:12:16 -07:00
Doug Bunting 207e97db7a Fix DNX Core testing on Windows
- avoid `cmd /C dnvm.cmd ...` because `cmd` does not report `.cmd` script exit code correctly
  - change both `_dnu.shade` and `_k.shade` though `_k.shade` is more-often an issue
- @moozzyk reported problem in [discussion](https://github.com/aspnet/Universe/pull/299#discussion-diff-41954492) of PR #299
2015-10-19 15:41:13 -07:00
Doug Bunting 4e87b0c972 Go back to running `dnu restore` with Mono
- can't fix #290 at this time; need Ubuntu 14.04 on Travis
2015-10-12 18:51:11 -07:00
Doug Bunting 24346ea976 Fix build breaks
- correct typo in `_kpm-publish.shade`
2015-10-12 10:39:48 -07:00
Doug Bunting d679c85aa3 Always restore w/ Core CLR and build w/ CLR or Mono
- #290
- remove workaround for aspnet/dnx#2566; not needed if building with CLR or Mono
- install Core CLR DNX in `build.sh`
  - must be applied in all repos using Travis before this PR goes in
- add `Dnu()` and `Dnx()` macros
  - remove `K()` macro from `_k-test.shade`; use `Dnx()` instead
- incorporate per-repo changes not yet applied to Universe templates
  - use newer `NuGet.exe`
  - Universe itself does not need the Korebuild package or `dnvm`

Changes partially revert 618a73b e.g. always start build with CLR or Mono DNX

nits:
- reduced DNX switches and `dnvm` calls in `build.cmd`
- base NuGet skip decision on _both_ KoreBuild and Sake's installation status
- make `Quiet` variable work more reliably; small changes often led to compilation problems
  - requires a small change in DNX repo at the same time
- remove some trailing whitespace and tabs
- add a bit more description to `_k.shade`
2015-10-12 10:02:18 -07:00
Doug Bunting 618a73b399 Support building with Core CLR (on Linux)
- hits all of the checkboxes in #272

Specify test runtime explicitly and support testing w/ DNX Core on Linux
- turn on DNX Core on Linux testing with `--test-dnxcore` target
  - or `KOREBUILD_TEST_DNXCORE` environment variable

Work around aspnet/dnx#2566
- builds fail with DNX Core on Linux otherwise

Do not attempt to install nodejs if not on Windows

Use user's `default` DNVM when `%SKIP_DNX_INSTALL%` defined on Windows
- enables builds with DNX Core
- should be the default for new repos; older repos can opt in

Use consistent case for all `--quiet` environment variables
  - also name these variables consistently; start w/ `KOREBUILD_`
- environment variables are case-sensitive on Linux and mixed case was annoying
- also get rid of leading space in these environment variable values

Check `IsLinux` and not `IsMono`
- `IsMono` is always `true` on Linux since Sake always runs in Mono there
  - but `IsLinux` is the right question

nits:
- remove tabs from a few files
- remove compilation warnings in local `makefile.shade`
2015-10-05 23:02:50 -07:00
Doug Bunting aa2beb83c2 Revert "Execute correct commands when building with Core CLR on Linux"
- bad merge; this commit should not have been included

This reverts commit 18d637dfc7.
2015-10-01 14:29:26 -07:00
Doug Bunting 580fe5b651 Merge branch 'dougbu/update.dnvm' into dev 2015-10-01 14:25:41 -07:00
Doug Bunting 18d637dfc7 Execute correct commands when building with Core CLR on Linux 2015-10-01 14:12:31 -07:00
Doug Bunting 352e41ff20 Update to latest `dnvm`
- `beta8-15518` to `rc1-15523`
- main changes include
  - remove `-a` alias for `-alias`; `build.cmd` files updated (thanx @NTaylorMullen)
  - [Linux] deprecate `dnvm unalias`; add `dnvm alias -d`
  - add `dnvm uninstall`
2015-10-01 14:04:57 -07:00
Anthony van der Hoorn fd7c5754fa Fix bug where we search for scripts in wwwroot/lib 2015-10-01 13:43:13 -07:00
BrennanConroy d7c3cebac9 Fix merge from release to dev 2015-09-30 09:33:42 -07:00
Pranav K 47ec2b4e50 Fix default feed for dev branch 2015-09-29 14:38:56 -07:00
Pranav K b1a0e1b251 Merge branch 'dev' into release 2015-09-28 22:46:10 -07:00
Pranav K faf91c06e0 * Use --quiet for git pull and git clone so git fetch messages do not show up in CI
error logs.
2015-09-28 21:09:12 -07:00
Doug Bunting 345c59826c Update to latest `dnvm`
- beta6-10394 to beta8-15518
  - grabbed from aspnet/Home but left default feed URIs alone
  - includes important fixes such as `dnvm use alias -r coreclr` support
2015-09-24 15:29:59 -07:00
Doug Bunting cb3dea63a3 Avoid path too long errors when performing BuildV2 builds in MVC repo
- do not glob to the ends of the earth when looking for `project.json` files

nits:
- remove unused variable in `_kpm-build.shade`
- remove incorrect comment in `_kpm-pack.shade`
- clean up some trailing whitespace
2015-09-18 13:09:51 -07:00
Ajay Bhargav Baaskaran a3d943197a Moving nuget-verify to run before test 2015-09-18 12:07:55 -07:00
N. Taylor Mullen a10610c0cc Update dnvm.ps1 and dnvm.sh DNX feed names to `aspnetcidev`. 2015-09-17 20:58:10 -07:00
Kiran Challa 5008e2743d Removed style cop related shade files 2015-09-15 14:19:00 -07:00
Doug Bunting 22952e1806 Add `restoreDir` parameter in `_k-restore.shade`
- enables use of this command where it's currently overridden
- in turn, this means `--quiet` would be honoured in those `makefile.shade` files

For example can use this hook to shut DNX build up a bit
- `makefile.shade` there calls `dnu restore` directly and ignores `--quiet`
2015-09-15 11:58:48 -07:00
moozzyk d59fa774a8 Updating licenses 2015-09-11 10:22:16 -07:00
Ajay Bhargav Baaskaran a0d51b9c2f Added Nuget feed and renamed packagelist json 2015-09-09 11:54:46 -07:00
Pranav K 864cc39ce2 Updating to Sake 0.2.2 2015-09-09 11:19:24 -07:00
N. Taylor Mullen a24c709344 Update dnvm.sh to use aspnetlitedev feed. 2015-09-02 22:15:17 -07:00
N. Taylor Mullen 7e2b09c249 Update dnvm.ps1 to use aspnetlitedev feed. 2015-09-02 20:38:51 -07:00
Pranav K 1b6d027fc1 Using Json parsing code from DNX
Fixes #141
2015-09-01 15:44:44 -07:00
Pranav K e5bea0fa1e Switching to aspnetrelease feed in Universe
Short term fix in the absence of ability to do this via build.cmd.
2015-08-17 14:39:01 -07:00
Victor Hurdugaci 7b0f6e7c2a Build tests and samples during regular build 2015-08-10 12:04:25 -07:00
Ajay Bhargav Baaskaran 73474132d1 Added a target to verify nupkgs with NugetPackageVerifier 2015-08-07 10:58:46 -07:00
moozzyk 3147920607 Reaciting to removing folder (including `.`) from the dnx command 2015-08-06 07:40:14 -07:00
Kirthi Krishnamraju ed9b0f59b5 Updated code to generate resx file only if file names does not have locales 2015-07-24 09:26:46 -07:00
Pranav K bd2025c561 Change nuget-resilient-publish to allow specifying a path to nuget.exe. 2015-06-29 15:21:23 -07:00
Pranav K 6d5ac18d0c Use dnvm run instead of switching using dnvm use 2015-06-24 14:35:02 -07:00
Pranav K d65251055e Updating dnvm 2015-06-24 13:58:01 -07:00
Doug Bunting f55367597a Pull in latest `dnvm` from Home's dev branch
- lots of `dnvm.ps1` fixes
- FreeBSD fixes in `dnvm.sh`
2015-06-17 11:28:48 -07:00
Victor Hurdugaci 00b2daa068 Fix argument parsing for fast build 2015-06-15 16:05:18 -07:00
Victor Hurdugaci f377542e38 Build projects in one go 2015-06-13 14:42:16 -07:00
Doug Bunting 664d718398 Add `Quiet` default to enable conditionalizing `Log.Info()` calls
- use in new `_copy.shade` which overrides the Sake default
2015-06-01 14:46:58 -07:00
Wei Wang 19333dc2dc Update dnvm scripts 2015-05-27 11:27:46 -07:00
Wei Wang 82333e1627 React to renaming "k-crossgen.cmd" to "dnx-crossgen.cmd" 2015-05-22 13:41:21 -07:00
moozzyk e771141eb8 Replacing rimraf in target-dir-clean with non-node.js based solution
rimraf needs to pull node.js and is slow.
2015-05-21 14:43:07 -07:00
Doug Bunting 75c1efeec7 Fix `target-dir-clean` target
- not currently cleaning in most cases
- typo in 16bb0df
2015-05-20 12:02:39 -07:00
moozzyk 16bb0df055 Replacing `directory delete` with `rimraf` in the `target-dir-clean` target
`directory delete` fails for read-only files
2015-05-19 09:27:16 -07:00
Brice Lambson 281c42ba1c Don't run tests using bin/debug/app/project.json files 2015-05-18 14:04:26 -07:00
mikary e3bccdb3b1 Support single threaded running of specific test projects through environment 2015-05-12 14:37:47 -07:00
Pranav K 789544a1e8 Use aspnetvnext feed as the default feed in dev branch 2015-05-06 10:48:32 -07:00
Pranav K 3f62cc65a5 Updating dnvm to latest 2015-05-06 09:35:02 -07:00
moozzyk f3207ed440 Fixing a build break in Helios
Removing Common.Native.targets - to avoid increasing build complexity repo with native projects will have their own target that generates version.h file
2015-05-01 13:16:51 -07:00
moozzyk 6558f1c281 Consistent versioning of native binaries
* Adding an MSBuild target file that generates a header containing file and product versions which will be used in .rc files in native projects across all repos.
  Note that keeping header generation in MSBuild is cleaner than generating it in a .shade file since the entire project is being built within a single build subsystem and therefore you can build the project directly (i.e. just with MSBuild) without having to do it with Sake (if the file did not exist)
* Updating native-compile target in _k-standard-goals.shade to pass version numbers.
2015-05-01 10:23:27 -07:00
Pranav K 9ffb74a4c3 Build samples as part of build-samples 2015-04-30 11:57:45 -07:00
Pranav K d457b54a36 Avoid running tests for different target frameworks in parallel.
This lets us run more things in parallel which involve shared resources.
2015-04-30 11:28:04 -07:00
Pranav K e3373d54ab Removing parallel copying of files 2015-04-30 10:33:39 -07:00
Pranav K 4882269842 Adding support for running build in parallel. 2015-04-30 08:28:42 -07:00
anurse 727924a8f2 change to us cmd to launch git on Windows 2015-04-29 16:08:43 -07:00
moozzyk e54a3b61c0 Enabling MSBuild 14 in the default native-compile target
Currently Helios won't build on machines that don't have VS2013 installed (only VS2015)
2015-04-28 11:55:39 -07:00
Pranav K 8d506097a0 Update dnu restore to use --parallel flag 2015-04-15 08:15:45 -07:00
Victor Hurdugaci bfd2467ad4 Merge release in dev 2015-03-31 11:31:36 -07:00
Victor Hurdugaci c354f0a8ba New assembly file version (with year) 2015-03-31 09:19:05 -07:00
Victor Hurdugaci 188f5e8328 Set the file version environment variable 2015-03-30 14:53:56 -07:00
anurse 9e872c3721 update dnvm
fixes #195
2015-03-30 11:30:59 -07:00
Pranav K f4794e5c7f Make pushing to NuGet feed more resilient. 2015-03-27 16:09:56 -07:00
Wei Wang 1d8f64d71c Remove k command and use dnx instead 2015-03-24 17:34:51 -07:00
Wei Wang 3cd272a96a Rename kpm to dnu in standard goal scripts 2015-03-20 10:34:39 -07:00
N. Taylor Mullen bd14c064e9 Fix DNX naming issue for 'k test'.
- This re-enables CoreCLR testing when running build.cmd.
2015-03-18 13:35:59 -07:00
Doug Bunting 90294aa49c Fix build failures when source is under a directory with spaces in the name
- aspnet/Mvc#2082
- problems specific to local `node` and related installations
 - quote authenticode verification target
 - quote local `node` library paths
 - quote local `npm.cmd` path (with ye olde `/S` double-quoting hack)
 - quote `--prefix` values in `npm install` commands
 - quote `rimraf` directories to delete
2015-03-12 10:33:12 -07:00
Doug Bunting f6ae75eac5 Bower blocks build on first run
- aspnet/Mvc#2116
- run Bower non-interatively from our scripts
 - does not affect grunt-brower-task; programmatic Bower use never prompts
- see Bower discussion at bower/bower#1162
- FYI `$env:CI = 'TeamCity'` would work similarly but TeamCity does not set that
2015-03-11 11:13:13 -07:00
Troy Dai 30e4b1c167 Update dnvm to build 10345 2015-03-11 11:00:40 -07:00
Troy Dai 1407c09c30 Integrate latest dnvm 2015-03-10 14:05:47 -07:00
N. Taylor Mullen 1f0531f65e Update dnvm. 2015-03-08 22:08:42 -07:00
Troy Dai e46896b7cd Futher renaming work
1. SKIP_KVM_INSTALL => SKIP_DNX_INSTALL
2. Update k test
2015-03-07 16:08:24 -08:00
Troy Dai 197ef48120 Rename k => dnx and update kvm to dnvm 2015-03-07 15:10:32 -08:00
Brice Lambson 7c2d4593de Clean up the framework detection logic in _k-test.shade 2015-02-23 09:27:53 -08:00
David Fowler 7ace9dece4 Update kvm.ps1
Fixed the feed
2015-02-17 19:59:04 -08:00
Victor Hurdugaci 9354296521 Merge branch 'release' into dev 2015-02-17 09:19:17 -08:00
Pranav K d56dafe2e8 Use kpm-build to build samples instead of kpm pack 2015-02-13 15:46:02 -08:00
Pranav K 0cd3d3767e Deep clean on the CI as part of clean 2015-02-12 17:07:58 -08:00
Doug Bunting 3de5db0c78 Provide `deep-clean` target to remove folders `git clean` cannot
- use `rimraf` instead of noisier, slower `robocopy-delete`
- _rimraf.shade is modeled after bower.shade
2015-02-05 14:25:44 -08:00
Doug Bunting 530d655d59 Use `default` for `*GloballyInstalled` variables
- allows calling .shade files to avoid repeated `TestCommand()` calls

nit in _node-install.shade:
- name `default nodeDir` variable to match other shade files; reusing value
2015-02-05 14:21:10 -08:00
Doug Bunting f1154a850c Speed up developer builds a bit
- do not delete node_modules folders during every build
2015-02-05 12:09:33 -08:00
Doug Bunting 80f7e445e5 Pay attention to `bower` and `grunt` libraries, not containing folder
- should help to avoid repeated CI failures executing `bower`

also get `grunt` working on Linux machines when globally installed
2015-02-05 12:09:10 -08:00
damianedwards ff63cb8b0d Move grunt execution to before compilation 2015-02-03 17:17:41 -08:00
Doug Bunting 6d39addb5b Create target directory for `npm` installations
- #144
- problems seem primarily to occur when `node` is globally installed but a
  package (`grunt` or `bower`) is not; `npm install X` fails in this case
- create the `--prefix` directory first to avoid these installation failures
- change _node-install.shade to avoid confusion when directory exists
2015-01-31 17:29:25 -08:00
anurse da5a292b12 ⬆️ kvm again 2015-01-30 14:36:45 -08:00
anurse 6adb92fea6 ⬆️ kvm 2015-01-30 13:43:55 -08:00
Doug Bunting 7431356913 Short-circuit `TestCommand()` calls once commands are installed locally 2015-01-29 22:54:56 -08:00
Doug Bunting 56f45e0c7d Include `bower` and `npm` commands in `--quiet` target 2015-01-29 22:54:51 -08:00
Wei Wang 6c55b360d0 Rename dotnetsdk to kvm 2015-01-28 16:31:17 -08:00
Suhas Joshi 19de5f1be1 Fix for test hang issue 2015-01-27 10:06:14 -08:00
Pranav K eb192a36a6 Renaming kpm-local-publish to kpm-publish 2015-01-25 10:57:14 -08:00
Pranav K 99a22149a9 Changes to allow using kpm add to publish artifacts to CI volatile directory 2015-01-25 10:23:55 -08:00
David Fowler 466a710a16 Make build install go directly to packages cache 2015-01-25 09:02:05 -08:00
Wei Wang 42a3fce46a React to renaming "kpm build" to "kpm pack" 2015-01-23 10:14:33 -08:00
Pranav K 361f083117 Updating build scripts to use dotnetsdk instead of kvm 2015-01-20 00:29:57 -08:00
Doug Bunting f38d08a408 #37, Support sample- or test-only repositories
- skip a few targets when src directory does not exist
2015-01-15 15:02:41 -08:00
Kai Ruhnau c008b3922d Fixed the casing of the configuration 2015-01-06 18:37:12 +01:00
Doug Bunting ea355e137f Fix #118, Only check K projects for XML documentation errors
- ignore leftover XML files e.g. from other branches
 - tested manually in MVC repo with a bad doc file outside a K project
- limit checked XML files to those in `bin` directory under K projects
- align with clean target: that only removes bin directories under K projects
- approach ignores XML files in .csproj projects but no such projects in
  repos where _k-xml-docs-test.shade file is used

Address old [comment](https://github.com/aspnet/Universe/pull/101/files#r16633938) from @Eilon on PR#101
> Traditionally we use i++ and not ++i.
2014-12-04 10:37:42 -08:00
Brice Lambson 22e94d2fbb Add IsTeamCity flag 2014-12-01 10:48:12 -08:00
Suhas Joshi f61b1496b2 Updating commands for non windows machines 2014-11-24 14:27:43 -08:00
Doug Bunting 3edc04741c Address PR comments
- "K_build_options" -> "KPM_build_options" environment variable
- "K_build_options" -> "KPM_restore_options" (oops)
- "set-quiet" -> "--quiet" target

nit: remove trailing whitespace
2014-11-12 08:45:54 -08:00