Commit Graph

127 Commits

Author SHA1 Message Date
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
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
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
Troy Dai 73a439804b Skip calling clean-npm-modules from #run-grunt on Mono 2014-11-11 17:02:42 -08:00
DamianEdwards 9c279164c4 Updated the grunt target to delete node_modules directory afterward
- It shelss out to "robocopy" tool as that is safe for long paths
- Doing this to work around the issue with KRE compile failing when long paths are present in the project folder
2014-11-11 11:15:36 -08:00
Pranav K fc99ba1426 Updating kvm.ps1 and kvm.sh scripts 2014-11-10 10:12:30 -08:00
Chris Ross 374a0ec055 Only build samples if samples dir exists. 2014-10-27 10:52:59 -07:00
Chris Ross 84c23e1e0a #96 - Build samples 2014-10-27 10:25:43 -07:00
Pranav K 78458c1869 Adding kvm.sh to KoreBuild 2014-09-21 15:41:33 -07:00
David Fowler d8eb06c0f0 Updated kvm to the latest
- Added -runtime switch
2014-09-05 01:10:26 -07:00
Brice Lambson 293c761eaf Run tests targeting aspnet* frameworks 2014-08-29 10:12:28 -07:00
dougbu 6f7e62201b Support test for XML documentation errors
- can't be done as a unit test because `k.cmd test` doesn't write assemblies for referenced projects
- instead support extending the "test" target in builds

To enable this in a repo, add the following to the makefile.shade file:
```
#xml-docs-test target='test'
  k-xml-docs-test
```

Example output with one syntax error and one invalid reference:
```
info: Target xml-docs-test
warn: Invalid documentation syntax in src\Microsoft.AspNet.Mvc.Core\bin\debug\net45\Microsoft.AspNet.Mvc.Core.xml
warn:  3170: <!-- Badly formed XML comment ignored for member "T:Microsoft.AspNet.Mvc.Rendering.HtmlHelper" -->
warn:  3203: If the object is already an <see cref="!:IDictionaries&lt;string, object&gt;"/> instance, then it is
```
2014-08-11 16:17:15 -07:00
David Fowler c27ba5f00f Made some tweaks to k test
- Change to look in frameworks instead of configurations when
  running tests
- Assume net45 if nothing specified
2014-07-13 22:24:47 -07:00
Pranav K f18a1b3465 Updating _k-build to actually pass in configuration 2014-07-10 13:47:45 -07:00
Pranav K 77409f8f6e Flow Configuration from environment when doing k build 2014-07-10 13:21:32 -07:00
DamianEdwards 79111650f0 Fixed node/npm/grunt tasks to use global install if available 2014-07-08 13:42:47 -07:00
DamianEdwards 861e3df43b Only install node/npm/bower if not installed globally 2014-07-08 12:43:56 -07:00
DamianEdwards f290ec014f Change native-compile to no-op if no native projects found
- #93
2014-07-02 14:38:52 -07:00
AndriySvyryd e32d1b069f Using the default namespace for the resources class 2014-06-27 15:40:38 -07:00
Brice Lambson efd257a7be Run tests on both k10 and net45 2014-06-25 09:46:41 -07:00
Pranav K 0023eac56b Modify KoreBuild to not set a K_BUILD_VERSION if it is already set (CI scenarios) 2014-06-21 18:25:10 -07:00
David Fowler 980e28a79f Updated kvm.ps1 2014-06-20 12:35:56 -07:00
Brice Lambson 782e586c22 Bump versions to *-alpha2-* 2014-06-19 16:05:56 -07:00
Wei Wang 213cddb339 Default author is set in KoreBuild script
- If there is a non-empty env var "K_AUTHOR", use its value as default
  author
- Otherwise, use the value of predefined var "AUTHORS"
2014-06-18 15:28:29 -07:00
David Fowler a1583f298c Change k build to kpm build. 2014-06-15 07:49:55 -07:00
Ryan Nowak 545c614320 temporarily disable stylecop for tests 2014-06-11 16:47:17 -07:00
Brice Lambson 9774d4531f Revert "Run tests on both net45 and k10 (Fix #42)"
This reverts commit c2a22b57b0.
2014-06-09 15:46:27 -07:00
Brice Lambson c2a22b57b0 Run tests on both net45 and k10 (Fix #42) 2014-06-09 14:18:41 -07:00
Brice Lambson 71a77685e6 Add Resources.cs to fix VS warnings 2014-06-06 09:42:09 -07:00
Pranav K 9d3b449f9f Use '\n' instead of Environment.NewLine when tokenizing multi-line resx
statements

Fixes #76
2014-05-29 16:43:02 -07:00
Ryan Nowak 9a960a5831 Adding scripts for stylecop 2014-05-28 12:53:40 -07:00
DamianEdwards 8ed77f290d Fix build break 2014-05-22 18:36:33 -07:00
DamianEdwards 464bf577bc Look for signtool.exe in absolute paths 2014-05-22 18:33:14 -07:00
DamianEdwards 6d5e709b85 Add tasks for:
- Installing node locally
- Running node
- Installing npm packages
- Install bower packages
- Running grunt
2014-05-22 16:36:57 -07:00
Pranav K 6c6e474db1 Removing support for csproj generation as part of build
* Removing 'watch' target since it's no longer useful
2014-05-21 15:47:54 -07:00