Commit Graph

14 Commits

Author SHA1 Message Date
Doug Bunting 419d3a3ea5 Support restoring with .NET Core
- infrastructure for switching restores everywhere i.e. addressing #290
- e.g. add `KOREBUILD_DNU_RESTORE_CORECLR` setting to `.travis.yml` files, especially if using Trusty
2015-11-13 14:49:58 -08: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 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 18d637dfc7 Execute correct commands when building with Core CLR on Linux 2015-10-01 14:12:31 -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
Pranav K 8d506097a0 Update dnu restore to use --parallel flag 2015-04-15 08:15:45 -07:00
Wei Wang 3cd272a96a Rename kpm to dnu in standard goal scripts 2015-03-20 10:34:39 -07:00
Troy Dai 197ef48120 Rename k => dnx and update kvm to dnvm 2015-03-07 15:10:32 -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
Doug Bunting dd5e65eb1d Get build and restore options from environment; provide set-quiet target
- see #123
- leaves default build unchanged
- run `build set-quiet default` for a much-quieter build
2014-11-12 08:40:44 -08:00
Louis DeJardin c1e8c7a0f7 Updating KoreBuild to use kvm/kpm/kre 2014-05-02 14:29:57 -07:00
David Fowler 010f5f9569 Added default build files. 2014-01-23 21:29:58 -08:00