Commit graph

50 commits

Author SHA1 Message Date
Eli Barzilay 556098ed50 Avoid hard-wired build-tree paths
Instead, search for stuff up the directory tree, with the main
functionality being to look for `Gulpfile.js` and assume the resulting
directory is the root.

(Unfortunatley, this is implemented twice, one in `scripts` and another
in `src`.  It's not possible to use a single implementation for both
since that would require assuming a directory structure which this is
intended to avoid.)

Also, in `scripts/build/projects.js`, abstracdt common exec
functionality into a local helper, and use full paths based on the above
search instead of assuming relative paths assuming CWD being in the
project root.
2021-10-18 17:43:45 -04:00
Eli Barzilay 7c3f607032 scripts/build/utils simplify exec
Using shell-based execution is always a bad idea; this thing didn't do
that via an option, but instead did it manually by constructing a shell
command so it suffers from the same diseases.

Perhaps there was need for this at some point in the past, but things
are pretty robust now, so there's no need to avoid running the command
normally.  The only thing that is needed is to add `which` which also
handles windows executable suffixes.

I tried this with a fresh clone on windows, where the tree and TS are
installed in paths that have spaces, and everything works as it should.
2021-10-18 17:43:19 -04:00
Andrew Branch d3055f0f29
--inspect can no longer be used as a flag through gulp (#42701)
* --inspect can no longer be used as a flag through gulp

* Add --break alias

* Update scripts/build/options.js
2021-02-12 16:01:22 -08:00
Ron Buckton fbd1c958e5
Update failed test tracking to support Mocha 6+ (#39211)
* Update failed test tracking to support Mocha 6+

* grep should not be an array
2020-06-23 15:19:30 -07:00
Eli Barzilay 8939b251b8 Fix cmdline aliases specs 2020-01-03 15:43:30 -05:00
Eli Barzilay dadb64ba70 Disable timeout when debugging
Use `-t 0` since somewhere a default timeout is set otherwise.
2019-12-30 14:42:35 -05:00
Eli Barzilay cfefe841b7 Allow --inspect=port in gulp runtests
Makes it possible to run two debuggers side-by-side.
2019-11-22 08:42:38 -05:00
Nathan Shively-Sanders 0bbeab6e61
Revert "Skip costly tests" (#35197)
* Revert "Skip costly tests"

* fix package.json format
2019-11-19 12:59:09 -08:00
Andrew Casey 5c951635e5
Fix chalk import (#35040) 2019-11-11 11:24:20 -08:00
Nathan Shively-Sanders 5380075a84
Always run Public API tests, allow lowercase skippercent (#32892) 2019-08-16 10:41:11 -07:00
Ron Buckton e3f4979736
Fix emit for object rest on a module export (#32699)
* Fix emit for object rest on a module export

* Add tests for exports of empty object/array binding patterns

* Add delay for exec to ensure diff tool has enough time to start
2019-08-05 16:53:21 -07:00
Wesley Wigham 3e6856137a
Add support for sharding tests across multiple workers (#32173)
* Add support for sharding tests across multiple workers

* Disable unittests when runners are expressly provided (unless they contain the unittest runner)
2019-07-01 14:56:57 -07:00
Nathan Shively-Sanders a56b65bc91 Add skip-percent alias for skipPercent 2019-06-19 14:12:17 -07:00
Nathan Shively-Sanders 6f28283e44 Run all tests on CI 2019-06-17 09:20:58 -07:00
Nathan Shively-Sanders 3ef953a819 Allow passing skipPercent
Currently, the default is 5%.

0 gives you 0% time savings
2.5 gives you 29%
5 gives you 38%
10 gives you 50%
20 gives you 65%
2019-06-14 15:59:39 -07:00
Wesley Wigham a887c6ba40
Remove unused (and sometimes broken) targets and scripts (#30054)
* Remove unused (and sometimes broken) targets and scripts

* Remove browser-specific harness code
2019-03-08 10:34:35 -08:00
Wesley Wigham c2f1998387
Fix baseline accept when there are multiple .delete files (#30091) 2019-02-25 16:18:03 -08:00
Wesley Wigham fb0dcd4987
Have runtests always throw on failure, make rm stream signal end of read queue (#30035) 2019-02-21 18:17:53 -08:00
Wesley Wigham b67f2d6bdf
Remove jake (hopefully for real this time) (#29085)
* Remove jake (hopefully for real this time)

* Fix gulpfile non-lkg build, add sanity-check build to posttest on CI, accept older baseline style to go with lkgd build

* More docs/scripts jake -> gulp
2019-02-20 15:32:15 -08:00
Ron Buckton 47c2708a9c Simplify gulp to just use 'tsc -b' to build, update to gulp@4 2019-01-27 21:56:56 -08:00
Wesley Wigham fdeb8f01df
Fix typo in runner selection in gulp 2019-01-24 12:58:46 -08:00
Ron Buckton 6b32f4edcb Fix gulp builds not building some targets 2019-01-16 17:32:58 -08:00
Nathan Shively-Sanders ad85e4fd22
Fix gulp baseline-accept (#29301)
* Fix gulp baseline-accept

I think it was ported incorrectly from jake and then never used.

* Re-add read:false to baselineDelete
2019-01-08 11:20:54 -08:00
Wesley Wigham fd7fd133e2
Fix the up-to-date-ness checks of sucessive gulp invocations (#29088) 2018-12-18 16:41:02 -08:00
Ron Buckton 4982803a38 Merge branch 'master' into sourceMapGenerator 2018-10-08 18:01:37 -07:00
Ron Buckton d224ee02d7 Free up space in the TransformFlags enum 2018-09-27 17:55:07 -07:00
Ron Buckton b006287cb1 Refactor and clean up sourcemap decoder 2018-09-04 17:50:06 -07:00
Ron Buckton 111300ccd5 Fix overlapping test runs in 'gulp watch' 2018-08-29 12:57:05 -07:00
Ron Buckton 1de8cd3f62 Emit lib reference directives in declaration output 2018-08-20 16:54:51 -07:00
Ron Buckton 0713e754e7 Build script updates 2018-07-10 12:13:27 -07:00
Ron Buckton cff0f831a6 Report errors in corrrect process for gulp-typescript-oop 2018-06-26 15:43:04 -07:00
Ron Buckton bc3268b654
Merge pull request #25211 from Microsoft/gulpBrowserify
Clean up browserify task, remove unused 'debugMode.js' script
2018-06-25 16:56:47 -07:00
Ron Buckton 78bf10ad80
Merge pull request #25004 from Microsoft/trackFailedTests
Adds failed test tracking
2018-06-25 16:55:43 -07:00
Ron Buckton 72a00b148c
Merge pull request #25146 from Microsoft/gulpWatch
Adds support for gulp.watch
2018-06-25 16:55:13 -07:00
Ron Buckton 5ed96ec072 Clean up browserify task, remove unused 'debugMode.js' script 2018-06-25 16:21:28 -07:00
Ron Buckton a9b4763249 Ensure upToDate also handles referenced project outputs 2018-06-25 14:14:19 -07:00
Ron Buckton 52fa900b5c Merge branch 'master' into trackFailedTests 2018-06-25 11:26:08 -07:00
Ron Buckton f557d7cd1b Adds support for gulp.watch 2018-06-22 00:09:21 -07:00
Ron Buckton b7918bf92d Fix runtests-parallel, tsserverlibrary, up-to-date checks 2018-06-21 21:27:46 -07:00
Ron Buckton c8c0428162 Cleanup, remove some unneeded dependencies, make it easier to add gulp.watch support later 2018-06-20 18:24:12 -07:00
Ron Buckton ad4338dd76 Remove excess exports from exec.js 2018-06-18 23:00:30 -07:00
Ron Buckton 21c23d4e4e Merge branch 'master' into gulpProjectRefs 2018-06-18 22:51:37 -07:00
Ron Buckton 891b15f60a Update gulpfile to support project references 2018-06-18 22:45:13 -07:00
Wesley Wigham 657d0119cc
Dont use unreliable inodes for checking file identity (#25008)
* Dont use unreliable inode as unique identifier

* Just concat with `\n

* Introduce path-overriding code to allow local executables ot be found
2018-06-15 15:53:03 -07:00
Wesley Wigham f17fe8713e
Actually forward sourcemaps to gulp-typescript doesnt disable sourcemaps (#24766) 2018-06-08 10:54:18 -07:00
Steven 06f411c4de Change getDirSize to default export 2018-06-07 20:58:54 -04:00
Steven 38a46b754d Rename get-dir-size.js to getDirSize.js 2018-06-07 20:58:54 -04:00
Steven f89273a31f Remove unused promisify 2018-06-07 20:58:54 -04:00
Steven bceb08b36f build: add check for lib size 2018-06-07 20:58:54 -04:00
Ron Buckton f4ca7ee767 Fork gulp-typescript tasks to run out-of-process 2018-05-04 15:51:13 -07:00